Add Dockerfile
This commit is contained in:
parent
ffaf2781f5
commit
92e8bfd5d5
15
Dockerfile
Normal file
15
Dockerfile
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
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}
|
Loading…
Reference in New Issue
Block a user