yinwentao
commited on
Commit
·
65a614a
1
Parent(s):
438c52b
updateRequirements
Browse files- Dockerfile +4 -1
Dockerfile
CHANGED
@@ -22,6 +22,9 @@ COPY ./requirements.txt /code/requirements.txt
|
|
22 |
RUN useradd -m -u 1000 user
|
23 |
# Switch to the "user" user
|
24 |
USER user
|
|
|
|
|
|
|
25 |
# Set home to the user's home directory
|
26 |
ENV HOME=/home/user \
|
27 |
PATH=/home/user/.local/bin:$PATH \
|
@@ -39,7 +42,7 @@ RUN pip3 install --no-cache-dir --upgrade -r /code/requirements.txt
|
|
39 |
|
40 |
# Set the working directory to the user's home directory
|
41 |
WORKDIR $HOME/app
|
42 |
-
|
43 |
# Copy the current directory contents into the container at $HOME/app setting the owner to the user
|
44 |
COPY --chown=user . $HOME/app
|
45 |
|
|
|
22 |
RUN useradd -m -u 1000 user
|
23 |
# Switch to the "user" user
|
24 |
USER user
|
25 |
+
|
26 |
+
WORKDIR /home/user/local
|
27 |
+
RUN ls -a
|
28 |
# Set home to the user's home directory
|
29 |
ENV HOME=/home/user \
|
30 |
PATH=/home/user/.local/bin:$PATH \
|
|
|
42 |
|
43 |
# Set the working directory to the user's home directory
|
44 |
WORKDIR $HOME/app
|
45 |
+
|
46 |
# Copy the current directory contents into the container at $HOME/app setting the owner to the user
|
47 |
COPY --chown=user . $HOME/app
|
48 |
|