FROM ekidd/rust-musl-builder:nightly-2021-02-13 AS rust-build USER root RUN rustup target add x86_64-unknown-linux-musl COPY . /app WORKDIR /app RUN cargo build --bins --release --target x86_64-unknown-linux-musl FROM alpine:latest WORKDIR /home # Copy Rust artifacts COPY --from=rust-build /app/target/x86_64-unknown-linux-musl/release/pixelrush ./app