Update Dockerfile
Browse files- Dockerfile +3 -2
Dockerfile
CHANGED
|
@@ -3,7 +3,7 @@
|
|
| 3 |
FROM python:3.9
|
| 4 |
|
| 5 |
RUN useradd -m -u 1000 user
|
| 6 |
-
USER user
|
| 7 |
ENV PATH="/home/user/.local/bin:/opt/conda/bin:$PATH"
|
| 8 |
|
| 9 |
#WORKDIR /app
|
|
@@ -19,7 +19,7 @@ ARG INSTALL_CHANNEL=pytorch
|
|
| 19 |
ARG TARGETPLATFORM
|
| 20 |
|
| 21 |
|
| 22 |
-
|
| 23 |
|
| 24 |
# Update basic dependencies we'll be using.
|
| 25 |
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
|
|
@@ -55,6 +55,7 @@ RUN case ${TARGETPLATFORM} in \
|
|
| 55 |
esac && \
|
| 56 |
/opt/conda/bin/conda clean -ya
|
| 57 |
|
|
|
|
| 58 |
#COPY --chown=user ./requirements.txt requirements.txt
|
| 59 |
COPY ./requirements.txt requirements.txt
|
| 60 |
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
|
|
|
| 3 |
FROM python:3.9
|
| 4 |
|
| 5 |
RUN useradd -m -u 1000 user
|
| 6 |
+
#USER user
|
| 7 |
ENV PATH="/home/user/.local/bin:/opt/conda/bin:$PATH"
|
| 8 |
|
| 9 |
#WORKDIR /app
|
|
|
|
| 19 |
ARG TARGETPLATFORM
|
| 20 |
|
| 21 |
|
| 22 |
+
USER root
|
| 23 |
|
| 24 |
# Update basic dependencies we'll be using.
|
| 25 |
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
|
|
|
|
| 55 |
esac && \
|
| 56 |
/opt/conda/bin/conda clean -ya
|
| 57 |
|
| 58 |
+
USER 1000
|
| 59 |
#COPY --chown=user ./requirements.txt requirements.txt
|
| 60 |
COPY ./requirements.txt requirements.txt
|
| 61 |
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|