mirror of
https://github.com/xvzc/SpoofDPI.git
synced 2024-12-22 06:15:51 +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
|
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"]
|
|
||||||
|
Loading…
Reference in New Issue
Block a user