Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +5 -3
Dockerfile
CHANGED
@@ -7,8 +7,7 @@ WORKDIR /code
|
|
7 |
# Copy the current directory contents into the container at /code
|
8 |
COPY ./requirements.txt /code/requirements.txt
|
9 |
|
10 |
-
|
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
|
@@ -20,7 +19,10 @@ ENV HOME=/home/user \\
|
|
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 |
|
|
|
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
|
|
|
19 |
|
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
|
28 |
|