Commit
·
4edfc37
1
Parent(s):
aee8033
fix: Avoid permission errors
Browse files- .streamlit/config.toml +0 -2
- Dockerfile +4 -0
.streamlit/config.toml
DELETED
@@ -1,2 +0,0 @@
|
|
1 |
-
[general]
|
2 |
-
storageFolder = "./.streamlit"
|
|
|
|
|
|
Dockerfile
CHANGED
@@ -13,6 +13,10 @@ COPY src/ ./src/
|
|
13 |
|
14 |
RUN pip3 install -r requirements.txt
|
15 |
|
|
|
|
|
|
|
|
|
16 |
EXPOSE 8501
|
17 |
|
18 |
HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health
|
|
|
13 |
|
14 |
RUN pip3 install -r requirements.txt
|
15 |
|
16 |
+
# Set Streamlit config/data folder to a writable path
|
17 |
+
ENV STREAMLIT_HOME=/app/.streamlit
|
18 |
+
RUN mkdir -p /app/.streamlit
|
19 |
+
|
20 |
EXPOSE 8501
|
21 |
|
22 |
HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health
|