Skip to content

Commit

Permalink
update Dockerfile to use Alpine
Browse files Browse the repository at this point in the history
  • Loading branch information
anweiss committed Oct 14, 2022
1 parent fb8aba7 commit 4178b69
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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" ]
FROM alpine:latest
COPY --from=builder /usr/src/cddl/target/release/cddl /usr/local/bin/cddl
ENTRYPOINT [ "/usr/local/bin/cddl" ]

0 comments on commit 4178b69

Please sign in to comment.