mirror of
https://github.com/xvzc/SpoofDPI.git
synced 2024-12-22 06:15:51 +00:00
3f90cd3bbf
Better simple Dockerfile ``` $ docker build ./ -t spoof-dpi:latest $ docker run -ti spoof-dpi:latest spoof-dpi --timeout 2000 --debug ```
14 lines
205 B
Docker
14 lines
205 B
Docker
FROM golang:alpine as builder
|
|
|
|
WORKDIR /go
|
|
|
|
RUN go install github.com/xvzc/SpoofDPI/cmd/spoof-dpi@latest
|
|
|
|
FROM alpine:latest
|
|
|
|
WORKDIR /
|
|
|
|
COPY --from=builder /go/bin/spoof-dpi .
|
|
|
|
ENTRYPOINT ["./spoof-dpi"]
|