diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..cf26287 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,15 @@ +FROM debian + +RUN mkdir /go +COPY knockr.go /go/knockr.go + +RUN apt-get update && apt-get install -y git golang-go +RUN GOPATH=/go go get github.com/mkideal/cli + +ENV destination= +ENV gatewayport=80 +ENV whitelistport=8080 +ENV timeout=600 + +WORKDIR /go +CMD GOPATH=/go go run knockr.go --Destination ${destination} --WhitelistPort ${whitelistport} --GatewayPort ${gatewayport} --Timeout ${timeout}