diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..b873178 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,20 @@ +FROM golang:1.15 + +ENV CGO_ENABLED=0 +WORKDIR /go/src/app + +COPY . . + +RUN go build -v + + +FROM alpine:3 + +RUN apk add iptables ip6tables + +COPY all-networks.txt . +COPY path-prefixes.txt . + +COPY --from=0 /go/src/app/go-mmproxy . + +ENTRYPOINT ["./go-mmproxy"] diff --git a/all-networks.txt b/all-networks.txt new file mode 100644 index 0000000..a5712ee --- /dev/null +++ b/all-networks.txt @@ -0,0 +1,2 @@ +0.0.0.0/0 +::/0