eric707 commited on
Commit
7f30057
·
verified ·
1 Parent(s): 23f6095

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +10 -0
Dockerfile CHANGED
@@ -1,6 +1,16 @@
1
  # Use an official Python runtime as base image
2
  FROM python:3.9
3
 
 
 
 
 
 
 
 
 
 
 
4
  # Set the working directory
5
  WORKDIR /app
6
 
 
1
  # Use an official Python runtime as base image
2
  FROM python:3.9
3
 
4
+ RUN useradd -m -u 1000 user
5
+
6
+ USER user
7
+
8
+ ENV HOME=/home/user \
9
+ PATH=/home/user/.local/bin:$PATH
10
+
11
+ WORKDIR $HOME/app
12
+
13
+ COPY --chown=user . $HOME/app
14
  # Set the working directory
15
  WORKDIR /app
16