adarsh-007 commited on
Commit
d6cc0e5
·
verified ·
1 Parent(s): bf53063

Update Dockerfile

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