minnehwg commited on
Commit
93bc73b
·
verified ·
1 Parent(s): 6cb7942

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -2
Dockerfile CHANGED
@@ -10,7 +10,7 @@ COPY ./requirements.txt /code/requirements.txt
10
  RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
11
 
12
  # Set up a new user named "user" with user ID 1000
13
- RUN useradd -m -u 1000 user
14
 
15
  # Switch to the "user" user
16
  USER user
@@ -25,4 +25,4 @@ WORKDIR $HOME/app
25
  # Copy the current directory contents into the container at $HOME/app setting the owner to the user
26
  COPY --chown=user . $HOME/app
27
 
28
- CMD ["python", "main.py"]
 
10
  RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
11
 
12
  # Set up a new user named "user" with user ID 1000
13
+ RUN useradd -m -u 10000 user
14
 
15
  # Switch to the "user" user
16
  USER user
 
25
  # Copy the current directory contents into the container at $HOME/app setting the owner to the user
26
  COPY --chown=user . $HOME/app
27
 
28
+ CMD ["python", "app.py"]