ajibs75 commited on
Commit
be08e3e
·
verified ·
1 Parent(s): d960a4b

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -1
Dockerfile CHANGED
@@ -1,8 +1,14 @@
1
  # Use the official Python 3.10.9 image
2
  FROM python:3.10.9
3
 
 
 
 
 
 
 
4
  # Copy the current directory contents into the container at .
5
- COPY . .
6
 
7
  # Set the working directory to /
8
  WORKDIR /
 
1
  # Use the official Python 3.10.9 image
2
  FROM python:3.10.9
3
 
4
+ # Set up a new user named "user" with user ID 1000
5
+ RUN useradd -m -u 1000 user
6
+
7
+ # Switch to the "user" user
8
+ USER user
9
+
10
  # Copy the current directory contents into the container at .
11
+ COPY --chown=user . .
12
 
13
  # Set the working directory to /
14
  WORKDIR /