Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +3 -2
Dockerfile
CHANGED
|
@@ -1,5 +1,3 @@
|
|
| 1 |
-
ENV HF_HOME=/home/user/app/hf_cache
|
| 2 |
-
|
| 3 |
# Use the official Python 3.10.9 image
|
| 4 |
FROM python:3.10.9
|
| 5 |
|
|
@@ -12,5 +10,8 @@ WORKDIR /
|
|
| 12 |
# Install requirements.txt
|
| 13 |
RUN pip install --no-cache-dir --upgrade -r /requirements.txt
|
| 14 |
|
|
|
|
|
|
|
|
|
|
| 15 |
# Start the FastAPI app on port 7860, the default port expected by Spaces
|
| 16 |
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|
|
|
|
|
|
|
|
|
|
| 1 |
# Use the official Python 3.10.9 image
|
| 2 |
FROM python:3.10.9
|
| 3 |
|
|
|
|
| 10 |
# Install requirements.txt
|
| 11 |
RUN pip install --no-cache-dir --upgrade -r /requirements.txt
|
| 12 |
|
| 13 |
+
USER user
|
| 14 |
+
ENV HF_HOME=/home/user/app/hf_cache
|
| 15 |
+
|
| 16 |
# Start the FastAPI app on port 7860, the default port expected by Spaces
|
| 17 |
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|