Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +3 -3
Dockerfile
CHANGED
@@ -2,13 +2,13 @@ FROM python:3.9
|
|
2 |
|
3 |
WORKDIR /code
|
4 |
|
5 |
-
# Set the HF_HOME environment variable to the working directory
|
6 |
-
ENV HF_HOME=/code
|
7 |
-
|
8 |
COPY ./requirements.txt /code/requirements.txt
|
9 |
|
10 |
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
11 |
|
12 |
COPY ./app.py /code/app.py
|
13 |
|
|
|
|
|
|
|
14 |
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|
|
|
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
|
8 |
|
9 |
COPY ./app.py /code/app.py
|
10 |
|
11 |
+
# Set the environment variable for the cache directory to a writable location
|
12 |
+
ENV HF_HOME=/tmp/huggingface_cache
|
13 |
+
|
14 |
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|