ARG ALPINE_ARCH ARG DOCKER_ARCH FROM --platform=linux/${DOCKER_ARCH} synit-build:${ALPINE_ARCH} USER root ARG http_proxy RUN http_proxy=${http_proxy} https_proxy=${http_proxy} apk add rustup openssl-dev ARG BUILD_USER USER ${BUILD_USER} # Running without proxy for now, to ensure reasonable freshness and consistency: # RUN http_proxy=${http_proxy} https_proxy=${http_proxy} rustup-init -y --default-toolchain nightly # RUN rustup-init -y --default-toolchain nightly ENV PATH=/home/${BUILD_USER}/.cargo/bin:$PATH # Prime the crates.io index RUN cargo search --limit 0