huathedev commited on
Commit
5afaaac
·
1 Parent(s): ccab4cb

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +13 -10
Dockerfile CHANGED
@@ -1,4 +1,5 @@
1
- FROM python:3.9
 
2
 
3
  WORKDIR $HOME/app
4
 
@@ -11,18 +12,20 @@ RUN apt-get update
11
  RUN apt-get install --reinstall build-essential -y
12
  RUN pip3 install pygco==0.0.16
13
 
 
14
  RUN useradd -m -u 1000 user
15
-
16
  USER user
 
 
17
 
18
- ENV HOME=/home/user \
19
- PATH=/home/user/.local/bin:$PATH
20
-
21
  WORKDIR $HOME/app
22
-
23
- COPY --chown=user . $HOME/app
24
-
25
- #COPY --chown=user config/config.toml $HOME/app/.streamlit/config.toml
26
 
27
  EXPOSE 8501
28
- CMD ["streamlit", "run", "ⓘ_Introduction.py", "--server.port=8510", "--server.address=0.0.0.0"]
 
 
 
 
 
1
+ FROM
2
+ python:3.9
3
 
4
  WORKDIR $HOME/app
5
 
 
12
  RUN apt-get install --reinstall build-essential -y
13
  RUN pip3 install pygco==0.0.16
14
 
15
+ # User
16
  RUN useradd -m -u 1000 user
 
17
  USER user
18
+ ENV HOME /home/user
19
+ ENV PATH $HOME/.local/bin:$PATH
20
 
21
+ WORKDIR $HOME
22
+ RUN mkdir app
 
23
  WORKDIR $HOME/app
24
+ COPY . $HOME/app
 
 
 
25
 
26
  EXPOSE 8501
27
+ CMD streamlit run app.py \
28
+ --server.headless true \
29
+ --server.enableCORS false \
30
+ --server.enableXsrfProtection false \
31
+ --server.fileWatcherType none