JuliaBack commited on
Commit
ce15bb0
·
verified ·
1 Parent(s): 5cb721c

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +20 -2
Dockerfile CHANGED
@@ -15,8 +15,26 @@ COPY src/ ./src/
15
 
16
  RUN pip3 install -r requirements.txt
17
 
18
- EXPOSE 8501
19
 
20
  HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health
21
 
22
- ENTRYPOINT ["streamlit", "run", "src/streamlit_app.py", "--server.port=8501", "--server.address=0.0.0.0"]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
15
 
16
  RUN pip3 install -r requirements.txt
17
 
 
18
 
19
  HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health
20
 
21
+ #ENTRYPOINT ["streamlit", "run", "src/streamlit_app.py", "--server.port=8501", "--server.address=0.0.0.0"]
22
+
23
+
24
+ # User
25
+ RUN useradd -m -u 1000 user
26
+ USER user
27
+ ENV HOME /home/user
28
+ ENV PATH $HOME/.local/bin:$PATH
29
+
30
+ WORKDIR $HOME
31
+ RUN mkdir app
32
+ WORKDIR $HOME/app
33
+ COPY . $HOME/app
34
+
35
+ EXPOSE 8501
36
+ CMD streamlit run src/streamlit_app.py \
37
+ --server.headless true \
38
+ --server.enableCORS false \
39
+ --server.enableXsrfProtection false \
40
+ --server.fileWatcherType none