goknockr/Dockerfile

14 lines
299 B
Docker
Raw Normal View History

FROM golang
2017-09-28 11:22:48 +00:00
COPY knockr.go /go/knockr.go
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
CMD go run knockr.go --Destination ${destination} --WhitelistPort ${whitelistport} --GatewayPort ${gatewayport} --Timeout ${timeout}