FROM golang COPY knockr.go /go/knockr.go RUN go get github.com/mkideal/cli 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}