mike dupont commited on
Commit
5427767
1 Parent(s): 9e428ff
Files changed (1) hide show
  1. Dockerfile +6 -4
Dockerfile CHANGED
@@ -21,10 +21,10 @@ RUN apt-get update && xargs -r -a /app/packages.txt apt-get install -y && rm -rf
21
  RUN pip3 install --no-cache-dir -r /app/requirements.txt
22
 
23
  # User
24
- #RUN useradd -m -u 1000 user
25
- #RUN chmod -R 777 /data
26
- #USER user
27
- ENV HOME /root
28
  ENV PATH $HOME/.local/bin:$PATH
29
 
30
  WORKDIR $HOME
@@ -32,6 +32,8 @@ RUN mkdir app
32
  WORKDIR $HOME/app
33
  COPY . $HOME/app
34
 
 
 
35
 
36
  EXPOSE 8501
37
  CMD streamlit run app.py \
 
21
  RUN pip3 install --no-cache-dir -r /app/requirements.txt
22
 
23
  # User
24
+ RUN useradd -m -u 1000 user
25
+ RUN chown -R user: /data
26
+ USER user
27
+ ENV HOME /home/user
28
  ENV PATH $HOME/.local/bin:$PATH
29
 
30
  WORKDIR $HOME
 
32
  WORKDIR $HOME/app
33
  COPY . $HOME/app
34
 
35
+ # make writable
36
+
37
 
38
  EXPOSE 8501
39
  CMD streamlit run app.py \