SpoofDPI/Dockerfile
Egor Gavrilov 46acc0834c
chore: use scratch image for Dockerfile instead of distroless (#226)
* Use Google Distroless for compact images, and some refactoring of Dockerfile

* Use "scratch" image instead of Distroless, and some additional optimizations in Dockerfile
2024-09-03 16:15:49 +09:00

9 lines
307 B
Docker

FROM golang:alpine AS builder
WORKDIR /go
RUN go install -ldflags '-w -s -extldflags "-static"' -tags timetzdata github.com/xvzc/SpoofDPI/cmd/spoofdpi@latest
FROM scratch
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
COPY --from=builder /go/bin/spoofdpi /
ENTRYPOINT ["/spoofdpi"]