poudboot/docker/poudboot/Dockerfile
Tom Alexander 6542d5f1b5
All checks were successful
rust-test Build rust-test has succeeded
format Build format has succeeded
rust-clippy Build rust-clippy has succeeded
build-poudboot Build build-poudboot has succeeded
Add CI integration.
2024-05-05 22:07:27 -04:00

14 lines
401 B
Docker

FROM rustlang/rust:nightly-alpine3.19 AS builder
RUN apk add --no-cache musl-dev
RUN mkdir /root/poudboot
WORKDIR /root/poudboot
COPY . .
# TODO: Add static build, which currently errors due to proc_macro. RUSTFLAGS="-C target-feature=+crt-static"
RUN CARGO_TARGET_DIR=/target cargo build --profile release-lto
FROM alpine:3.19 AS runner
COPY --from=builder /target/release-lto/poudboot /usr/bin/