Browse Source

chore(docker): use scratch as docker base image

pull/20/head
sigoden 3 years ago
parent
commit
fc13d41c17
  1. 2
      Dockerfile

2
Dockerfile

@ -5,6 +5,6 @@ WORKDIR /app
COPY . . COPY . .
RUN cargo build --target x86_64-unknown-linux-musl --release 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/ COPY --from=builder /app/target/x86_64-unknown-linux-musl/release/duf /bin/
ENTRYPOINT ["/bin/duf"] ENTRYPOINT ["/bin/duf"]
Loading…
Cancel
Save