FROM clux/muslrust as builder ENV RUSTFLAGS "-C opt-level=s" COPY . /volume/ RUN cargo build --release FROM scratch WORKDIR /repo COPY --from=builder /volume/target/x86_64-unknown-linux-musl/release/gitmoji-changelog /gitmoji-changelog ENTRYPOINT ["/gitmoji-changelog"] CMD ["/repo"]