diff --git a/Dockerfile b/Dockerfile index 5659b3a5..c8ec3ee3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,10 @@ -FROM ekidd/rust-musl-builder:1.57.0 AS builder +FROM rust:1.64.0-alpine AS builder +RUN apk update +RUN apk add --no-cache openssl-dev musl-dev +WORKDIR /usr/src/cddl COPY . ./ RUN cargo b --release --bin cddl -FROM scratch -COPY --from=builder /home/rust/src/target/x86_64-unknown-linux-musl/release/cddl /cddl -ENTRYPOINT [ "/cddl" ] \ No newline at end of file +FROM alpine:latest +COPY --from=builder /usr/src/cddl/target/release/cddl /usr/local/bin/cddl +ENTRYPOINT [ "/usr/local/bin/cddl" ] \ No newline at end of file