From 6a5489122326c7432d19e1166b83cf281625ad3e Mon Sep 17 00:00:00 2001 From: Andreas Dzialocha Date: Wed, 7 Sep 2022 19:25:01 +0200 Subject: [PATCH] Use muslrust to build docker image --- Dockerfile | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 67915ec27..5329fbc48 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,7 @@ -FROM ekidd/rust-musl-builder:latest AS BUILDER +FROM clux/muslrust:stable AS BUILDER -# Add source code with right permissions -ADD --chown=rust:rust . ./ +# Add source code +ADD . ./ # Build our application RUN cargo build --release @@ -10,6 +10,7 @@ RUN cargo build --release FROM alpine:latest RUN apk --no-cache add ca-certificates COPY --from=BUILDER \ - /home/rust/src/target/x86_64-unknown-linux-musl/release/aquadoggo \ - /usr/local/bin/ + /volume/target/x86_64-unknown-linux-musl/release/aquadoggo \ + /usr/local/bin/ + CMD /usr/local/bin/aquadoggo