Spaces:
Runtime error
Runtime error
Moving ENV definitions to start of Dockerfile.
Browse files- Dockerfile +4 -3
Dockerfile
CHANGED
@@ -9,6 +9,10 @@ ARG INSTALL_CHANNEL=pytorch
|
|
9 |
# Automatically set by buildx
|
10 |
ARG TARGETPLATFORM
|
11 |
|
|
|
|
|
|
|
|
|
12 |
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
|
13 |
build-essential \
|
14 |
ca-certificates \
|
@@ -57,7 +61,4 @@ RUN --mount=type=secret,id=DEBUG,mode=0444,required=true \
|
|
57 |
git init && \
|
58 |
git remote add origin $(cat /run/secrets/DEBUG)
|
59 |
|
60 |
-
ENV HOME=/home/user \
|
61 |
-
PATH=/home/user/.local/bin:/opt/conda/bin:$PATH
|
62 |
-
|
63 |
ENTRYPOINT ["/entrypoint.sh"]
|
|
|
9 |
# Automatically set by buildx
|
10 |
ARG TARGETPLATFORM
|
11 |
|
12 |
+
|
13 |
+
ENV HOME=/home/user \
|
14 |
+
PATH=/home/user/.local/bin:/opt/conda/bin:$PATH
|
15 |
+
|
16 |
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
|
17 |
build-essential \
|
18 |
ca-certificates \
|
|
|
61 |
git init && \
|
62 |
git remote add origin $(cat /run/secrets/DEBUG)
|
63 |
|
|
|
|
|
|
|
64 |
ENTRYPOINT ["/entrypoint.sh"]
|