16 lines
390 B
Docker
16 lines
390 B
Docker
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}
|