Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse fileswritable path for streamlit config
- Dockerfile +7 -2
Dockerfile
CHANGED
|
@@ -9,6 +9,11 @@ RUN apt-get update && apt-get install -y \
|
|
| 9 |
git \
|
| 10 |
&& rm -rf /var/lib/apt/lists/*
|
| 11 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 12 |
COPY requirements.txt ./
|
| 13 |
COPY . .
|
| 14 |
|
|
@@ -16,6 +21,6 @@ RUN pip3 install -r requirements.txt
|
|
| 16 |
|
| 17 |
EXPOSE 8501
|
| 18 |
|
| 19 |
-
HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health
|
| 20 |
|
| 21 |
-
ENTRYPOINT ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0"]
|
|
|
|
| 9 |
git \
|
| 10 |
&& rm -rf /var/lib/apt/lists/*
|
| 11 |
|
| 12 |
+
|
| 13 |
+
# Set writable path for Streamlit config
|
| 14 |
+
ENV STREAMLIT_HOME=/tmp/.streamlit
|
| 15 |
+
RUN mkdir -p /tmp/.streamlit
|
| 16 |
+
|
| 17 |
COPY requirements.txt ./
|
| 18 |
COPY . .
|
| 19 |
|
|
|
|
| 21 |
|
| 22 |
EXPOSE 8501
|
| 23 |
|
| 24 |
+
HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health || exit 1
|
| 25 |
|
| 26 |
+
ENTRYPOINT ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0", "--global.dataFrameSerialization", "legacy", "--logger.level", "debug"]
|