Spaces:
Sleeping
Sleeping
Add application file
Browse files- Dockerfile +4 -1
Dockerfile
CHANGED
@@ -2,6 +2,10 @@ FROM python:3.9
|
|
2 |
|
3 |
WORKDIR /code
|
4 |
|
|
|
|
|
|
|
|
|
5 |
COPY ./requirements.txt /code/requirements.txt
|
6 |
|
7 |
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
@@ -9,4 +13,3 @@ RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
|
9 |
COPY . .
|
10 |
|
11 |
CMD ["gunicorn","-b", "0.0.0.0:7860", "app:app"]
|
12 |
-
|
|
|
2 |
|
3 |
WORKDIR /code
|
4 |
|
5 |
+
# Create cache directory and set permissions
|
6 |
+
RUN mkdir -p /.cache/huggingface/hub && \
|
7 |
+
chmod -R 777 /.cache
|
8 |
+
|
9 |
COPY ./requirements.txt /code/requirements.txt
|
10 |
|
11 |
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
|
|
13 |
COPY . .
|
14 |
|
15 |
CMD ["gunicorn","-b", "0.0.0.0:7860", "app:app"]
|
|