sarthaksavvy commited on
Commit
5f4c13a
·
1 Parent(s): c49ad09

[main] with defining the permissions

Browse files
Files changed (1) hide show
  1. Dockerfile +9 -2
Dockerfile CHANGED
@@ -1,8 +1,15 @@
1
  FROM python:3.10-slim
2
 
3
- WORKDIR /app
4
 
5
- COPY ./ /app
 
 
 
 
 
 
 
6
 
7
  RUN pip install -r requirements.txt
8
 
 
1
  FROM python:3.10-slim
2
 
3
+ RUN useradd user
4
 
5
+ USER user
6
+
7
+ ENV HOME=/home/user \
8
+ PATH=/home/user/.local/bin:$PATH
9
+
10
+ WORKDIR $HOME/app
11
+
12
+ COPY --chown=user ./ $HOME/app
13
 
14
  RUN pip install -r requirements.txt
15