mirror of
https://github.com/xvzc/SpoofDPI.git
synced 2024-12-21 22:06:33 +00:00
46acc0834c
* Use Google Distroless for compact images, and some refactoring of Dockerfile * Use "scratch" image instead of Distroless, and some additional optimizations in Dockerfile
9 lines
307 B
Docker
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"]
|