File tree Expand file tree Collapse file tree 2 files changed +2
-8
lines changed
ML-Frameworks/pytorch-aarch64 Expand file tree Collapse file tree 2 files changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -12,12 +12,11 @@ ARG DOCKER_IMAGE_MIRROR=""
1212# ============================
1313FROM ${DOCKER_IMAGE_MIRROR}${BASE_IMAGE} AS workshop
1414
15- ARG USERNAME
1615ARG TORCH_WHEEL
1716ARG TORCH_AO_WHEEL
1817
1918ENV DEBIAN_FRONTEND=noninteractive
20- ENV DOCKER_USER=${USERNAME}
19+ ENV DOCKER_USER=debian
2120
2221RUN test "$(arch)" = "aarch64"
2322
@@ -71,9 +70,8 @@ COPY --chown=$DOCKER_USER:$DOCKER_USER pytorch/test /home/$DOCKER_USER/pytorch/t
7170# ============================
7271FROM ${DOCKER_IMAGE_MIRROR}${BASE_IMAGE}
7372
74- ARG USERNAME
7573ENV DEBIAN_FRONTEND=noninteractive
76- ENV DOCKER_USER=${USERNAME}
74+ ENV DOCKER_USER=debian
7775
7876# Runtime OS bits + UI
7977RUN set -eux && \
Original file line number Diff line number Diff line change @@ -22,17 +22,13 @@ if ! [ -e "$1" ] || ! [ -e "$2" ]; then
2222 exit 1
2323fi
2424
25- IMAGE_USERNAME=" ${USERNAME:- $(. / etc/ os-release && echo " $ID " )} "
26- echo " USERNAME=$IMAGE_USERNAME "
27-
2825docker buildx \
2926 build --load \
3027 -t toolsolutions-pytorch:latest \
3128 --build-context rootdir=../.. \
3229 --build-arg DOCKER_IMAGE_MIRROR \
3330 --build-arg TORCH_WHEEL=$1 \
3431 --build-arg TORCH_AO_WHEEL=$2 \
35- --build-arg USERNAME=" $IMAGE_USERNAME " \
3632 .
3733
3834[[ $* == * --build-only* ]] && exit 0
You can’t perform that action at this time.
0 commit comments