From: sigoden Date: Sun, 5 Jun 2022 01:30:26 +0000 (+0800) Subject: chore(docker): use scratch as docker base image X-Git-Url: https://git.ozva.co.uk/?a=commitdiff_plain;h=fc13d41c172bd385c3f3ef1bc3acc0309b960650;p=ozva-cloud chore(docker): use scratch as docker base image --- diff --git a/Dockerfile b/Dockerfile index 108586f..b9d4764 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,6 +5,6 @@ WORKDIR /app COPY . . RUN cargo build --target x86_64-unknown-linux-musl --release -FROM alpine +FROM scratch COPY --from=builder /app/target/x86_64-unknown-linux-musl/release/duf /bin/ ENTRYPOINT ["/bin/duf"] \ No newline at end of file