goknockr/Dockerfile

16 lines
390 B
Docker
Raw Normal View History

2017-09-28 11:22:48 +00:00
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}