Feature [#1]: use official golang Docker image

This commit is contained in:
maride 2017-09-28 14:00:51 +02:00
parent 92e8bfd5d5
commit e681e0dba5

View File

@ -1,10 +1,8 @@
FROM debian
FROM golang
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
RUN go get github.com/mkideal/cli
ENV destination=
ENV gatewayport=80
@ -12,4 +10,4 @@ ENV whitelistport=8080
ENV timeout=600
WORKDIR /go
CMD GOPATH=/go go run knockr.go --Destination ${destination} --WhitelistPort ${whitelistport} --GatewayPort ${gatewayport} --Timeout ${timeout}
CMD go run knockr.go --Destination ${destination} --WhitelistPort ${whitelistport} --GatewayPort ${gatewayport} --Timeout ${timeout}