Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Update Dockerfile
Browse files- Dockerfile +3 -5
Dockerfile
CHANGED
@@ -5,10 +5,6 @@ RUN pip install --no-cache-dir pip==22.3.1 && \
|
|
5 |
datasets \
|
6 |
"huggingface-hub>=0.19" "hf-transfer>=0.1.4" "protobuf<4" "click<8.1" "pydantic~=1.0"
|
7 |
|
8 |
-
COPY --chown=user ./requirements.txt requirements.txt
|
9 |
-
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
10 |
-
|
11 |
-
|
12 |
ENV PYTHONPATH=$HOME/app \
|
13 |
PYTHONUNBUFFERED=1 \
|
14 |
HF_HUB_ENABLE_HF_TRANSFER=1 \
|
@@ -23,6 +19,8 @@ ENV PYTHONPATH=$HOME/app \
|
|
23 |
RUN useradd -m -u 1000 user
|
24 |
WORKDIR /app
|
25 |
|
26 |
-
COPY --chown=user .
|
|
|
27 |
|
|
|
28 |
CMD ["python", "app.py"]
|
|
|
5 |
datasets \
|
6 |
"huggingface-hub>=0.19" "hf-transfer>=0.1.4" "protobuf<4" "click<8.1" "pydantic~=1.0"
|
7 |
|
|
|
|
|
|
|
|
|
8 |
ENV PYTHONPATH=$HOME/app \
|
9 |
PYTHONUNBUFFERED=1 \
|
10 |
HF_HUB_ENABLE_HF_TRANSFER=1 \
|
|
|
19 |
RUN useradd -m -u 1000 user
|
20 |
WORKDIR /app
|
21 |
|
22 |
+
COPY --chown=user ./requirements.txt requirements.txt
|
23 |
+
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
24 |
|
25 |
+
COPY --chown=user . /app
|
26 |
CMD ["python", "app.py"]
|