mirror of
https://github.com/xvzc/SpoofDPI.git
synced 2025-02-22 18:29:49 +03:00
* Use Google Distroless for compact images, and some refactoring of Dockerfile * Use "scratch" image instead of Distroless, and some additional optimizations in Dockerfile
8 lines
307 B
Docker
8 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"]
|