Update Dockerfile
Browse files- Dockerfile +5 -0
Dockerfile
CHANGED
@@ -18,6 +18,9 @@ ARG INSTALL_CHANNEL=pytorch
|
|
18 |
# Automatically set by buildx
|
19 |
ARG TARGETPLATFORM
|
20 |
|
|
|
|
|
|
|
21 |
# Update basic dependencies we'll be using.
|
22 |
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
|
23 |
build-essential \
|
@@ -49,6 +52,8 @@ RUN case ${TARGETPLATFORM} in \
|
|
49 |
esac && \
|
50 |
/opt/conda/bin/conda clean -ya
|
51 |
|
|
|
|
|
52 |
COPY --chown=user ./requirements.txt requirements.txt
|
53 |
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
54 |
|
|
|
18 |
# Automatically set by buildx
|
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 \
|
26 |
build-essential \
|
|
|
52 |
esac && \
|
53 |
/opt/conda/bin/conda clean -ya
|
54 |
|
55 |
+
USER 1000
|
56 |
+
|
57 |
COPY --chown=user ./requirements.txt requirements.txt
|
58 |
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
59 |
|