Add Dockerfile

This commit is contained in:
maride 2017-09-28 13:22:48 +02:00
parent ffaf2781f5
commit 92e8bfd5d5

15
Dockerfile Normal file
View File

@ -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}