caviri
commited on
Commit
·
4b17ca6
1
Parent(s):
a470771
ci: Testing non root user in HF
Browse files- Dockerfile +4 -4
Dockerfile
CHANGED
|
@@ -43,9 +43,9 @@ RUN apt-get update && apt-get -y upgrade \
|
|
| 43 |
# Switch to the "user" user
|
| 44 |
USER 1000
|
| 45 |
|
| 46 |
-
# Set home to the user's home directory
|
| 47 |
-
ENV HOME=/home/user \
|
| 48 |
-
|
| 49 |
|
| 50 |
# Set the working directory to the user's home directory
|
| 51 |
WORKDIR $HOME/digiwild
|
|
@@ -54,7 +54,7 @@ WORKDIR $HOME/digiwild
|
|
| 54 |
RUN pip install --no-cache-dir --upgrade pip
|
| 55 |
|
| 56 |
# Copy the current directory contents into the container at $HOME/app setting the owner to the user
|
| 57 |
-
COPY --chown=
|
| 58 |
|
| 59 |
RUN pip3 install -r $HOME/digiwild/requirements.txt
|
| 60 |
|
|
|
|
| 43 |
# Switch to the "user" user
|
| 44 |
USER 1000
|
| 45 |
|
| 46 |
+
# # Set home to the user's home directory
|
| 47 |
+
# ENV HOME=/home/user \
|
| 48 |
+
# PATH=/home/user/.local/bin:$PATH
|
| 49 |
|
| 50 |
# Set the working directory to the user's home directory
|
| 51 |
WORKDIR $HOME/digiwild
|
|
|
|
| 54 |
RUN pip install --no-cache-dir --upgrade pip
|
| 55 |
|
| 56 |
# Copy the current directory contents into the container at $HOME/app setting the owner to the user
|
| 57 |
+
COPY --chown=1000:1000 . $HOME/digiwild
|
| 58 |
|
| 59 |
RUN pip3 install -r $HOME/digiwild/requirements.txt
|
| 60 |
|