Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
gradio docker
Browse files- Dockerfile +9 -9
- README.md +1 -1
Dockerfile
CHANGED
@@ -2,25 +2,25 @@
|
|
2 |
|
3 |
FROM docker.io/huggingface/downloader:0.17.3@sha256:b5bc7fb168c85737634c00c4099b19e251eb2e55b3523b4e389d98876b35f109
|
4 |
|
5 |
-
FROM docker.io/library/python:3.
|
6 |
|
7 |
RUN --mount=target=pre-requirements.txt,source=pre-requirements.txt pip install --no-cache-dir -r pre-requirements.txt
|
8 |
|
9 |
-
RUN pip install --no-cache-dir gradio[oauth]==4.16.0 "uvicorn>=0.14.0" spaces==0.22.0
|
10 |
-
|
11 |
-
RUN --mount=target=requirements.txt,source=requirements.txt pip install --no-cache-dir -r requirements.txt
|
12 |
-
|
13 |
-
WORKDIR /home/user/app
|
14 |
-
|
15 |
RUN pip install --no-cache-dir pip==22.3.1 && pip install --no-cache-dir datasets "huggingface-hub>=0.19" "hf-transfer>=0.1.4" "protobuf<4" "click<8.1" "pydantic~=1.0"
|
16 |
|
|
|
|
|
17 |
RUN useradd -m -u 1000 user
|
18 |
|
19 |
-
RUN
|
|
|
|
|
20 |
|
21 |
COPY --link --chown=1000 --from=lfs /app /home/user/app
|
22 |
|
23 |
-
|
|
|
|
|
24 |
|
25 |
RUN pip freeze > /tmp/freeze.txt
|
26 |
|
|
|
2 |
|
3 |
FROM docker.io/huggingface/downloader:0.17.3@sha256:b5bc7fb168c85737634c00c4099b19e251eb2e55b3523b4e389d98876b35f109
|
4 |
|
5 |
+
FROM docker.io/library/python:3.9@sha256:5e11e0165c7e02fcb4a15772bd25e28266ed9c4e90fded5e8cc7a921affd7826
|
6 |
|
7 |
RUN --mount=target=pre-requirements.txt,source=pre-requirements.txt pip install --no-cache-dir -r pre-requirements.txt
|
8 |
|
|
|
|
|
|
|
|
|
|
|
|
|
9 |
RUN pip install --no-cache-dir pip==22.3.1 && pip install --no-cache-dir datasets "huggingface-hub>=0.19" "hf-transfer>=0.1.4" "protobuf<4" "click<8.1" "pydantic~=1.0"
|
10 |
|
11 |
+
RUN pip install --no-cache-dir gradio[oauth]==4.18.0 "uvicorn>=0.14.0" spaces
|
12 |
+
|
13 |
RUN useradd -m -u 1000 user
|
14 |
|
15 |
+
RUN apt-get update && apt-get install -y git git-lfs ffmpeg libsm6 libxext6 cmake libgl1-mesa-glx && rm -rf /var/lib/apt/lists/* && git lfs install
|
16 |
+
|
17 |
+
RUN --mount=target=requirements.txt,source=requirements.txt pip install --no-cache-dir -r requirements.txt
|
18 |
|
19 |
COPY --link --chown=1000 --from=lfs /app /home/user/app
|
20 |
|
21 |
+
WORKDIR /home/user/app
|
22 |
+
|
23 |
+
RUN --mount=target=/root/packages.txt,source=packages.txt apt-get update && xargs -r -a /root/packages.txt apt-get install -y && rm -rf /var/lib/apt/lists/*
|
24 |
|
25 |
RUN pip freeze > /tmp/freeze.txt
|
26 |
|
README.md
CHANGED
@@ -3,7 +3,7 @@ title: xVASynth
|
|
3 |
emoji: π£
|
4 |
colorFrom: gray
|
5 |
colorTo: gray
|
6 |
-
sdk:
|
7 |
python_version: 3.9
|
8 |
app_file: app.py
|
9 |
tags:
|
|
|
3 |
emoji: π£
|
4 |
colorFrom: gray
|
5 |
colorTo: gray
|
6 |
+
sdk: docker
|
7 |
python_version: 3.9
|
8 |
app_file: app.py
|
9 |
tags:
|