chore(docker): use scratch as docker base image

This commit is contained in:
sigoden 2022-06-05 09:30:26 +08:00
parent 882a9ae716
commit fc13d41c17

View file

@ -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"]