Spaces:
Running
Running
Mimi
commited on
Commit
·
e545cc6
1
Parent(s):
bbc0573
fixed dockerfile
Browse files- Dockerfile +3 -3
Dockerfile
CHANGED
@@ -10,9 +10,9 @@ WORKDIR $HOME/app
|
|
10 |
|
11 |
COPY --chown=user . $HOME/app
|
12 |
# Install system dependencies and requirements
|
13 |
-
RUN
|
14 |
-
pip install --no-cache-dir
|
15 |
-
|
16 |
|
17 |
EXPOSE 7860
|
18 |
CMD huggingface-cli login --token $HF_TOKEN --add-to-git-credential && \
|
|
|
10 |
|
11 |
COPY --chown=user . $HOME/app
|
12 |
# Install system dependencies and requirements
|
13 |
+
RUN pip install --no-cache-dir --upgrade pip && \
|
14 |
+
pip install --no-cache-dir -r $HOME/app/requirements.txt && \
|
15 |
+
chown -R user:user $HOME/.cache/huggingface
|
16 |
|
17 |
EXPOSE 7860
|
18 |
CMD huggingface-cli login --token $HF_TOKEN --add-to-git-credential && \
|