Update Dockerfile
Browse files- Dockerfile +5 -4
Dockerfile
CHANGED
@@ -8,16 +8,17 @@ COPY ./requirements.txt /code/requirements.txt
|
|
8 |
|
9 |
RUN apt-get -y update && apt-get -y install python3-pip
|
10 |
|
|
|
11 |
|
12 |
-
# Set up a new user named "user"
|
13 |
-
RUN useradd -m
|
14 |
|
15 |
# Switch to the "user" user
|
16 |
USER user
|
17 |
|
18 |
-
RUN pip3 install --no-cache-dir --upgrade setuptools pip
|
19 |
|
20 |
-
RUN pip3 install --no-cache-dir --upgrade -r /code/requirements.txt
|
21 |
|
22 |
# Set home to the user's home directory
|
23 |
ENV HOME=/home/user \
|
|
|
8 |
|
9 |
RUN apt-get -y update && apt-get -y install python3-pip
|
10 |
|
11 |
+
RUN cat /etc/passwd
|
12 |
|
13 |
+
# Set up a new user named "user"
|
14 |
+
RUN useradd -m user
|
15 |
|
16 |
# Switch to the "user" user
|
17 |
USER user
|
18 |
|
19 |
+
RUN pip3 install --break-system-packages --no-cache-dir --upgrade setuptools pip
|
20 |
|
21 |
+
RUN pip3 install --break-system-packages --no-cache-dir --upgrade -r /code/requirements.txt
|
22 |
|
23 |
# Set home to the user's home directory
|
24 |
ENV HOME=/home/user \
|