silaseic commited on
Commit
881f053
1 Parent(s): 1c704a5

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -5
Dockerfile CHANGED
@@ -15,15 +15,15 @@ RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
15
  # Set up a new user named "user" with user ID 1000
16
  RUN useradd -m -u 1000 user
17
  # Switch to the "user" user
18
- USER user
19
  # Set home to the user's home directory
20
- ENV HOME=/home/user \
21
- PATH=/home/user/.local/bin:$PATH
22
 
23
  # Set the working directory to the user's home directory
24
- WORKDIR $HOME/app
25
 
26
  # Copy the current directory contents into the container at $HOME/app setting the owner to the user
27
- COPY --chown=user . $HOME/app
28
 
29
  CMD ["python", "main.py"]
 
15
  # Set up a new user named "user" with user ID 1000
16
  RUN useradd -m -u 1000 user
17
  # Switch to the "user" user
18
+ # USER user
19
  # Set home to the user's home directory
20
+ # ENV HOME=/home/user \
21
+ # PATH=/home/user/.local/bin:$PATH
22
 
23
  # Set the working directory to the user's home directory
24
+ WORKDIR /home/user/app
25
 
26
  # Copy the current directory contents into the container at $HOME/app setting the owner to the user
27
+ COPY --chown=user . /home/user/app
28
 
29
  CMD ["python", "main.py"]