FROM library/archlinux:base as build WORKDIR /src ENV CARGO_RUSTFLAGS target-feature=+crt-static ENV CARGO_BUILD_TARGET x86_64-unknown-linux-gnu RUN pacman -Syu --noconfirm \ gcc \ make \ perl \ rustup RUN rustup default stable COPY . ./ RUN cargo doc RUN cargo build RUN cargo test RUN cargo build --release RUN cargo publish --dry-run FROM scratch as runtime ENTRYPOINT ["/verto"] COPY --from=build /src/target/x86_64-unknown-linux-gnu/release/verto /verto