pa3lo commited on
Commit
fcda42f
1 Parent(s): 3ff376f

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +13 -0
Dockerfile CHANGED
@@ -1,6 +1,19 @@
1
  # Use an official Python runtime as a parent image
2
  FROM python:3.9
3
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4
  # Set the working directory in the container
5
  WORKDIR /code
6
 
 
1
  # Use an official Python runtime as a parent image
2
  FROM python:3.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
+ # Set home to the user's home directory
11
+ ENV HOME=/home/user \
12
+ PATH=/home/user/.local/bin:$PATH
13
+
14
+ # Set the working directory to the user's home directory
15
+ WORKDIR $HOME/app
16
+
17
  # Set the working directory in the container
18
  WORKDIR /code
19