Fernando Knüttel commited on
Commit
cdba6db
·
1 Parent(s): efaf815

look if the bug is fixed through the docker file

Browse files
Files changed (1) hide show
  1. Dockerfile +10 -0
Dockerfile CHANGED
@@ -11,6 +11,16 @@ RUN apt-get update && apt-get install -y \
11
  COPY requirements.txt ./
12
  COPY src/ ./src/
13
 
 
 
 
 
 
 
 
 
 
 
14
  RUN pip3 install -r requirements.txt
15
 
16
  EXPOSE 8501
 
11
  COPY requirements.txt ./
12
  COPY src/ ./src/
13
 
14
+ # Environment-Variablen setzen (fix für /.streamlit Fehler)
15
+ ENV HOME=/tmp
16
+ ENV STREAMLIT_HOME=/tmp/streamlit
17
+ ENV STREAMLIT_CONFIG_DIR=/tmp/streamlit
18
+ ENV STREAMLIT_RUNTIME_DIR=/tmp/streamlit
19
+ ENV STREAMLIT_BROWSER_GATHERUSAGESTATS=false
20
+
21
+ # Sicherstellen, dass das Verzeichnis existiert
22
+ RUN mkdir -p /tmp/streamlit
23
+
24
  RUN pip3 install -r requirements.txt
25
 
26
  EXPOSE 8501