ahmad-alismail commited on
Commit
223de65
·
verified ·
1 Parent(s): 03a89c4

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -3
Dockerfile CHANGED
@@ -7,7 +7,8 @@ WORKDIR /code
7
  # Copy the current directory contents into the container at /code
8
  COPY ./requirements.txt /code/requirements.txt
9
 
10
-
 
11
 
12
  # Set up a new user named "user" with user ID 1000
13
  RUN useradd -m -u 1000 user
@@ -20,8 +21,7 @@ ENV HOME=/home/user \
20
  # Set the working directory to the user's home directory
21
  WORKDIR $HOME/app
22
 
23
- # Install requirements.txt
24
- RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
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
 
7
  # Copy the current directory contents into the container at /code
8
  COPY ./requirements.txt /code/requirements.txt
9
 
10
+ # Install requirements.txt
11
+ RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
12
 
13
  # Set up a new user named "user" with user ID 1000
14
  RUN useradd -m -u 1000 user
 
21
  # Set the working directory to the user's home directory
22
  WORKDIR $HOME/app
23
 
24
+
 
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