@@ -10,9 +10,10 @@ ENV RUSTUP_HOME=/usr/local/rustup
1010ENV CARGO_HOME=/usr/local/cargo
1111ENV PATH=/usr/local/cargo/bin:${PATH}
1212
13+ ARG ARCH=x86_64
1314ARG RUSTUP_VERSION=1.25.1
1415ARG RUST_VERSION=1.66.0
15- ARG RUST_ARCH=x86_64 -unknown-linux-musl
16+ ARG RUST_ARCH=${ARCH} -unknown-linux-musl
1617
1718# https://github.com/sfackler/rust-openssl/issues/1462
1819ENV RUSTFLAGS="-Ctarget-feature=-crt-static"
@@ -86,8 +87,7 @@ RUN git config -f /opt/git-install/etc/gitconfig --add safe.directory "*" && \
8687ARG CRAM_VERSION=d245cca
8788ARG PYGIT2_VERSION=1.11.1
8889RUN pip3 install \
89- git+https://github.com/brodie/cram.git@${CRAM_VERSION} \
90- pygit2==${PYGIT2_VERSION}
90+ git+https://github.com/brodie/cram.git@${CRAM_VERSION}
9191
9292RUN apk add --no-cache go nodejs npm openssh-client patch
9393
@@ -184,8 +184,8 @@ COPY --from=build --link=false /usr/src/josh/static/ /josh/static/
184184ARG S6_OVERLAY_VERSION=3.1.2.1
185185ADD https://github.com/just-containers/s6-overlay/releases/download/v${S6_OVERLAY_VERSION}/s6-overlay-noarch.tar.xz /tmp
186186RUN tar -C / -Jxpf /tmp/s6-overlay-noarch.tar.xz
187- ADD https://github.com/just-containers/s6-overlay/releases/download/v${S6_OVERLAY_VERSION}/s6-overlay-x86_64 .tar.xz /tmp
188- RUN tar -C / -Jxpf /tmp/s6-overlay-x86_64 .tar.xz
187+ ADD https://github.com/just-containers/s6-overlay/releases/download/v${S6_OVERLAY_VERSION}/s6-overlay-${ARCH} .tar.xz /tmp
188+ RUN tar -C / -Jxpf /tmp/s6-overlay-${ARCH} .tar.xz
189189
190190ARG GIT_GID_UID=2001
191191
0 commit comments