Use Google Distroless for compact images, and some refactoring of Dockerfile (#208)

This commit is contained in:
Egor Gavrilov 2024-08-29 01:50:35 +03:00 committed by GitHub
parent 2aea4a7a51
commit af950c1a94
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,13 +1,7 @@
FROM golang:alpine as builder FROM golang:alpine as builder
WORKDIR /go WORKDIR /go
RUN go install github.com/xvzc/SpoofDPI/cmd/spoofdpi@latest RUN go install github.com/xvzc/SpoofDPI/cmd/spoofdpi@latest
FROM alpine:latest FROM gcr.io/distroless/static-debian12
COPY --from=builder /go/bin/spoofdpi /
WORKDIR / ENTRYPOINT ["/spoofdpi"]
COPY --from=builder /go/bin/spoofdpi .
ENTRYPOINT ["./spoofdpi"]