presidio commited on
Commit
c312584
1 Parent(s): 83ad88f

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +9 -0
Dockerfile CHANGED
@@ -17,6 +17,15 @@ EXPOSE 7860
17
 
18
  COPY . /code
19
 
 
 
 
 
 
 
 
 
 
20
  HEALTHCHECK CMD curl --fail http://localhost:7860/_stcore/health
21
 
22
  CMD python -m streamlit run presidio_streamlit.py --server.port=7860 --server.address=0.0.0.0
 
17
 
18
  COPY . /code
19
 
20
+ RUN useradd -m -u 1000 user
21
+ USER user
22
+ ENV HOME=/home/user \
23
+ PATH=/home/user/.local/bin:$PATH
24
+
25
+ WORKDIR $HOME/app
26
+
27
+ COPY --chown=user . $HOME/app
28
+
29
  HEALTHCHECK CMD curl --fail http://localhost:7860/_stcore/health
30
 
31
  CMD python -m streamlit run presidio_streamlit.py --server.port=7860 --server.address=0.0.0.0