2017-09-28 12:00:51 +00:00
|
|
|
FROM golang
|
2017-09-28 11:22:48 +00:00
|
|
|
|
|
|
|
COPY knockr.go /go/knockr.go
|
|
|
|
|
2017-09-28 12:00:51 +00:00
|
|
|
RUN go get github.com/mkideal/cli
|
2017-09-28 11:22:48 +00:00
|
|
|
|
|
|
|
ENV destination=
|
|
|
|
ENV gatewayport=80
|
|
|
|
ENV whitelistport=8080
|
|
|
|
ENV timeout=600
|
|
|
|
|
|
|
|
WORKDIR /go
|
2017-09-28 12:00:51 +00:00
|
|
|
CMD go run knockr.go --Destination ${destination} --WhitelistPort ${whitelistport} --GatewayPort ${gatewayport} --Timeout ${timeout}
|