Kangarroar commited on
Commit
281f635
1 Parent(s): c846e8e

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +1 -8
Dockerfile CHANGED
@@ -2,11 +2,7 @@ FROM python:3.8.10
2
 
3
  WORKDIR /app
4
 
5
- COPY ./requirements.txt /app/requirements.txt
6
- COPY ./packages.txt /app/packages.txt
7
-
8
- RUN apt-get update && xargs -r -a /app/packages.txt apt-get install -y && rm -rf /var/lib/apt/lists/*
9
- RUN pip3 install --no-cache-dir -r /app/requirements.txt
10
 
11
  # Set up a new user named "user" with user ID 1000
12
  RUN useradd -m -u 1000 user
@@ -18,9 +14,6 @@ USER user
18
  ENV HOME=/home/user \
19
  PATH=/home/user/.local/bin:$PATH
20
 
21
- # Set the working directory to the user's home directory
22
- WORKDIR $HOME/app
23
-
24
  # Copy the current directory contents into the container at $HOME/app setting the owner to the user
25
  COPY --chown=user . $HOME/app
26
 
 
2
 
3
  WORKDIR /app
4
 
5
+ RUN pip3 install --no-cache-dir -r requirements.txt
 
 
 
 
6
 
7
  # Set up a new user named "user" with user ID 1000
8
  RUN useradd -m -u 1000 user
 
14
  ENV HOME=/home/user \
15
  PATH=/home/user/.local/bin:$PATH
16
 
 
 
 
17
  # Copy the current directory contents into the container at $HOME/app setting the owner to the user
18
  COPY --chown=user . $HOME/app
19