Update Dockerfile
Browse files- Dockerfile +3 -3
Dockerfile
CHANGED
@@ -26,7 +26,7 @@ WORKDIR /app
|
|
26 |
COPY . .
|
27 |
|
28 |
# Set up a new user named "user" with user ID 1000
|
29 |
-
RUN useradd -u 1000 user
|
30 |
|
31 |
#RUN useradd -ms /bin/bash user
|
32 |
#RUN addgroup -g 1001 -S 1000
|
@@ -40,7 +40,7 @@ ENV TF_ENABLE_ONEDNN_OPTS=0
|
|
40 |
|
41 |
|
42 |
# Switch to the "user" user
|
43 |
-
USER user
|
44 |
# Set home to the user's home directory
|
45 |
|
46 |
ENV HOME=/home/user \
|
@@ -52,7 +52,7 @@ ENV HOME=/home/user \
|
|
52 |
#WORKDIR $HOME/app
|
53 |
#RUN chmod -R 755 $HOME/app
|
54 |
# Copy the current directory contents into the container at $HOME/app setting the owner to the user
|
55 |
-
COPY --chown=user . $HOME/app
|
56 |
RUN python3 -m pip install --upgrade pip
|
57 |
# Install requirements.txt
|
58 |
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
|
|
26 |
COPY . .
|
27 |
|
28 |
# Set up a new user named "user" with user ID 1000
|
29 |
+
#RUN useradd -u 1000 user
|
30 |
|
31 |
#RUN useradd -ms /bin/bash user
|
32 |
#RUN addgroup -g 1001 -S 1000
|
|
|
40 |
|
41 |
|
42 |
# Switch to the "user" user
|
43 |
+
#USER user
|
44 |
# Set home to the user's home directory
|
45 |
|
46 |
ENV HOME=/home/user \
|
|
|
52 |
#WORKDIR $HOME/app
|
53 |
#RUN chmod -R 755 $HOME/app
|
54 |
# Copy the current directory contents into the container at $HOME/app setting the owner to the user
|
55 |
+
#COPY --chown=user . $HOME/app
|
56 |
RUN python3 -m pip install --upgrade pip
|
57 |
# Install requirements.txt
|
58 |
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|