Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +4 -0
Dockerfile
CHANGED
|
@@ -17,6 +17,10 @@ RUN pip3 install -r requirements.txt
|
|
| 17 |
EXPOSE 8501
|
| 18 |
|
| 19 |
ENV HOME=/app
|
|
|
|
|
|
|
|
|
|
|
|
|
| 20 |
|
| 21 |
HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health
|
| 22 |
|
|
|
|
| 17 |
EXPOSE 8501
|
| 18 |
|
| 19 |
ENV HOME=/app
|
| 20 |
+
ENV STREAMLIT_HOME=/app/.streamlit
|
| 21 |
+
|
| 22 |
+
# Create .streamlit config directory and make sure it's writable
|
| 23 |
+
RUN mkdir -p $STREAMLIT_HOME && chmod -R 777 $HOME
|
| 24 |
|
| 25 |
HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health
|
| 26 |
|