FROM docker.io/library/rust:${RUST_VERSION}-slim LABEL maintainer 'Jacob Kiers ' ENV ZIG_VERSION=${ZIG_VERSION} # Install zig, binstall and zigbuild COPY zig/install-dependencies.sh /tmp/install-dependencies.sh RUN chmod +x /tmp/install-dependencies.sh && /tmp/install-dependencies.sh && rm /tmp/install-dependencies.sh # Install Rust targets RUN rustup target add \ x86_64-unknown-linux-gnu \ x86_64-unknown-linux-musl \ aarch64-unknown-linux-gnu \ aarch64-unknown-linux-musl \ arm-unknown-linux-gnueabihf \ arm-unknown-linux-musleabihf \ x86_64-pc-windows-gnu