yuki.tsutsumi commited on
Commit
4003174
1 Parent(s): f2fc197

[update]app配下のフォルダの所有者をuserに変更。

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -2
Dockerfile CHANGED
@@ -8,7 +8,9 @@ ENV HOME=/home/user \
8
 
9
  WORKDIR $HOME/app
10
 
11
- RUN mkdir -p $HOME/app/logs && chmod -R 777 $HOME/app/logs
 
 
12
 
13
  COPY requirements.txt .
14
 
@@ -21,7 +23,7 @@ USER user
21
 
22
  EXPOSE 8501
23
 
24
- COPY . $HOME/app
25
 
26
  ENTRYPOINT ["streamlit", "run"]
27
 
 
8
 
9
  WORKDIR $HOME/app
10
 
11
+ RUN mkdir -p $HOME/app/logs && \
12
+ chown -R user:user $HOME/app && \
13
+ chmod -R 774 $HOME/app
14
 
15
  COPY requirements.txt .
16
 
 
23
 
24
  EXPOSE 8501
25
 
26
+ COPY --chown=user:user . $HOME/app
27
 
28
  ENTRYPOINT ["streamlit", "run"]
29