From 92e8bfd5d5a4723e8a138ad9ef414000103c63be Mon Sep 17 00:00:00 2001 From: maride Date: Thu, 28 Sep 2017 13:22:48 +0200 Subject: [PATCH] Add Dockerfile --- Dockerfile | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 Dockerfile 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}