Spaces:
Sleeping
Sleeping
Anwar11234
commited on
Commit
·
33a1b48
1
Parent(s):
32d5243
modified Dockerfile
Browse files- Dockerfile +5 -4
Dockerfile
CHANGED
@@ -3,10 +3,11 @@ COPY . .
|
|
3 |
|
4 |
WORKDIR /
|
5 |
|
6 |
-
RUN
|
7 |
|
8 |
-
RUN
|
9 |
-
|
10 |
|
|
|
11 |
|
12 |
-
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|
|
|
3 |
|
4 |
WORKDIR /
|
5 |
|
6 |
+
RUN mkdir -p /.cache/huggingface/hub
|
7 |
|
8 |
+
# Separate RUN command for chmod
|
9 |
+
RUN chmod -R 777 /.cache/huggingface
|
10 |
|
11 |
+
RUN pip install --no-cache-dir --upgrade -r /requirements.txt
|
12 |
|
13 |
+
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|