Zach Schillaci commited on
Commit
5fec69b
1 Parent(s): 9579da5

Update Dockerfile to fix permissions

Browse files
Files changed (1) hide show
  1. Dockerfile +11 -2
Dockerfile CHANGED
@@ -5,8 +5,17 @@ WORKDIR /app
5
  COPY requirements.txt /
6
  RUN pip install -r /requirements.txt
7
 
8
- COPY . /app/
 
 
 
 
 
 
 
 
 
9
 
10
  EXPOSE 8050
11
 
12
- CMD ["streamlit", "run", "Introduction.py"]
 
5
  COPY requirements.txt /
6
  RUN pip install -r /requirements.txt
7
 
8
+ RUN useradd -m -u 1000 user
9
+
10
+ USER user
11
+
12
+ ENV HOME=/home/user
13
+ ENV PATH=/home/user/.local/bin:$PATH
14
+
15
+ WORKDIR $HOME/app
16
+
17
+ COPY --chown=user . $HOME/app
18
 
19
  EXPOSE 8050
20
 
21
+ CMD ["streamlit", "run", "Introduction.py"]