Spaces:
Sleeping
Sleeping
andres.salguero commited on
Commit ·
ecef918
1
Parent(s): 1e616bf
update docekrfile
Browse files- Dockerfile +3 -3
Dockerfile
CHANGED
|
@@ -3,9 +3,9 @@ FROM python:3.9-slim
|
|
| 3 |
WORKDIR /app
|
| 4 |
|
| 5 |
# Set a writable home directory for the app user
|
| 6 |
-
ENV HOME="/
|
| 7 |
# Set a writable cache directory for Hugging Face (the new standard)
|
| 8 |
-
ENV HF_HOME="/
|
| 9 |
|
| 10 |
# Install build tools needed for compiling python packages from source
|
| 11 |
RUN apt-get update && apt-get install -y build-essential
|
|
@@ -17,6 +17,6 @@ COPY . .
|
|
| 17 |
|
| 18 |
EXPOSE 7860
|
| 19 |
|
| 20 |
-
CMD sh -c 'rm -rf /
|
| 21 |
|
| 22 |
|
|
|
|
| 3 |
WORKDIR /app
|
| 4 |
|
| 5 |
# Set a writable home directory for the app user
|
| 6 |
+
ENV HOME="/tmp"
|
| 7 |
# Set a writable cache directory for Hugging Face (the new standard)
|
| 8 |
+
ENV HF_HOME="/tmp/huggingface_cache"
|
| 9 |
|
| 10 |
# Install build tools needed for compiling python packages from source
|
| 11 |
RUN apt-get update && apt-get install -y build-essential
|
|
|
|
| 17 |
|
| 18 |
EXPOSE 7860
|
| 19 |
|
| 20 |
+
CMD sh -c 'rm -rf /tmp/huggingface_cache/* && streamlit run app.py --server.port=${PORT:-7860} --server.address=0.0.0.0'
|
| 21 |
|
| 22 |
|