not-lain commited on
Commit
48ed952
β€’
1 Parent(s): 0a0c531

switch to docker

Browse files
Files changed (2) hide show
  1. Dockerfile +3 -3
  2. README.md +1 -1
Dockerfile CHANGED
@@ -6,6 +6,9 @@ RUN pip install --no-cache-dir pip==22.3.1 && pip install --no-cache-dir datas
6
 
7
  RUN --mount=target=/tmp/packages.txt,source=packages.txt apt-get update && xargs -r -a /tmp/packages.txt apt-get install -y && apt-get install -y curl && curl -fsSL https://deb.nodesource.com/setup_20.x | bash - && apt-get install -y nodejs && rm -rf /var/lib/apt/lists/* && apt-get clean
8
 
 
 
 
9
  RUN apt-get update && apt-get install -y git git-lfs ffmpeg libsm6 libxext6 cmake rsync libgl1-mesa-glx && rm -rf /var/lib/apt/lists/* && git lfs install
10
 
11
 
@@ -24,9 +27,6 @@ RUN pip install --no-cache-dir gradio[oauth]==5.4.0 "uvicorn>=0.14.0" spaces
24
 
25
  COPY --link --chown=1000 ./ /home/user/app
26
 
27
- RUN ln -s /usr/lib/python3/dist-packages/uno.py /usr/local/lib/python3.10/site-packages/
28
- RUN ln -s /usr/lib/python3/dist-packages/unohelper.py /usr/local/lib/python3.10/site-packages/
29
-
30
  COPY --from=pipfreeze --link --chown=1000 /tmp/freeze.txt /tmp/freeze.txt
31
 
32
  CMD ["python", "app.py"]
 
6
 
7
  RUN --mount=target=/tmp/packages.txt,source=packages.txt apt-get update && xargs -r -a /tmp/packages.txt apt-get install -y && apt-get install -y curl && curl -fsSL https://deb.nodesource.com/setup_20.x | bash - && apt-get install -y nodejs && rm -rf /var/lib/apt/lists/* && apt-get clean
8
 
9
+ RUN ln -s /usr/lib/python3/dist-packages/uno.py /usr/local/lib/python3.10/site-packages/
10
+ RUN ln -s /usr/lib/python3/dist-packages/unohelper.py /usr/local/lib/python3.10/site-packages/
11
+
12
  RUN apt-get update && apt-get install -y git git-lfs ffmpeg libsm6 libxext6 cmake rsync libgl1-mesa-glx && rm -rf /var/lib/apt/lists/* && git lfs install
13
 
14
 
 
27
 
28
  COPY --link --chown=1000 ./ /home/user/app
29
 
 
 
 
30
  COPY --from=pipfreeze --link --chown=1000 /tmp/freeze.txt /tmp/freeze.txt
31
 
32
  CMD ["python", "app.py"]
README.md CHANGED
@@ -3,7 +3,7 @@ title: Utils
3
  emoji: 🌍
4
  colorFrom: indigo
5
  colorTo: gray
6
- sdk: gradio
7
  sdk_version: 5.4.0
8
  app_file: app.py
9
  pinned: false
 
3
  emoji: 🌍
4
  colorFrom: indigo
5
  colorTo: gray
6
+ sdk: docker
7
  sdk_version: 5.4.0
8
  app_file: app.py
9
  pinned: false