mirror of
https://github.com/xvzc/SpoofDPI.git
synced 2024-12-22 14:26:31 +00:00
Use Google Distroless for compact images, and some refactoring of Dockerfile (#208)
This commit is contained in:
parent
2aea4a7a51
commit
af950c1a94
12
Dockerfile
12
Dockerfile
@ -1,13 +1,7 @@
|
||||
FROM golang:alpine as builder
|
||||
|
||||
WORKDIR /go
|
||||
|
||||
RUN go install github.com/xvzc/SpoofDPI/cmd/spoofdpi@latest
|
||||
|
||||
FROM alpine:latest
|
||||
|
||||
WORKDIR /
|
||||
|
||||
COPY --from=builder /go/bin/spoofdpi .
|
||||
|
||||
ENTRYPOINT ["./spoofdpi"]
|
||||
FROM gcr.io/distroless/static-debian12
|
||||
COPY --from=builder /go/bin/spoofdpi /
|
||||
ENTRYPOINT ["/spoofdpi"]
|
||||
|
Loading…
Reference in New Issue
Block a user