Spaces:
Sleeping
Sleeping
sakshamlakhera
commited on
Commit
·
fad0a3e
1
Parent(s):
969e79c
docker change3
Browse files- Dockerfile +5 -5
Dockerfile
CHANGED
|
@@ -15,10 +15,10 @@ COPY . /app
|
|
| 15 |
RUN chmod -R 777 /app
|
| 16 |
|
| 17 |
# Set writable cache paths
|
| 18 |
-
ENV STREAMLIT_HOME="
|
| 19 |
-
ENV TORCH_HOME="
|
| 20 |
-
ENV GDOWN_HOME="
|
| 21 |
-
ENV XDG_CACHE_HOME="
|
| 22 |
|
| 23 |
# Create cache/config directories
|
| 24 |
RUN mkdir -p $STREAMLIT_HOME $TORCH_HOME $GDOWN_HOME $XDG_CACHE_HOME /app/assets \
|
|
@@ -36,7 +36,7 @@ ENV STREAMLIT_SERVER_ENABLECORS=false
|
|
| 36 |
|
| 37 |
# Health check for Docker
|
| 38 |
HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health || exit 1
|
| 39 |
-
|
| 40 |
# Run Streamlit
|
| 41 |
ENTRYPOINT ["streamlit", "run", "Home.py", "--server.port=8501", "--server.address=0.0.0.0"]
|
| 42 |
|
|
|
|
| 15 |
RUN chmod -R 777 /app
|
| 16 |
|
| 17 |
# Set writable cache paths
|
| 18 |
+
ENV STREAMLIT_HOME="/.streamlit"
|
| 19 |
+
ENV TORCH_HOME="/.cache/torch"
|
| 20 |
+
ENV GDOWN_HOME="/.cache/gdown"
|
| 21 |
+
ENV XDG_CACHE_HOME="/.cache"
|
| 22 |
|
| 23 |
# Create cache/config directories
|
| 24 |
RUN mkdir -p $STREAMLIT_HOME $TORCH_HOME $GDOWN_HOME $XDG_CACHE_HOME /app/assets \
|
|
|
|
| 36 |
|
| 37 |
# Health check for Docker
|
| 38 |
HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health || exit 1
|
| 39 |
+
ENV PYTHONUNBUFFERED=1
|
| 40 |
# Run Streamlit
|
| 41 |
ENTRYPOINT ["streamlit", "run", "Home.py", "--server.port=8501", "--server.address=0.0.0.0"]
|
| 42 |
|