Feature [#1]: use official golang Docker image
This commit is contained in:
parent
92e8bfd5d5
commit
e681e0dba5
@ -1,10 +1,8 @@
|
|||||||
FROM debian
|
FROM golang
|
||||||
|
|
||||||
RUN mkdir /go
|
|
||||||
COPY knockr.go /go/knockr.go
|
COPY knockr.go /go/knockr.go
|
||||||
|
|
||||||
RUN apt-get update && apt-get install -y git golang-go
|
RUN go get github.com/mkideal/cli
|
||||||
RUN GOPATH=/go go get github.com/mkideal/cli
|
|
||||||
|
|
||||||
ENV destination=
|
ENV destination=
|
||||||
ENV gatewayport=80
|
ENV gatewayport=80
|
||||||
@ -12,4 +10,4 @@ ENV whitelistport=8080
|
|||||||
ENV timeout=600
|
ENV timeout=600
|
||||||
|
|
||||||
WORKDIR /go
|
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}
|
||||||
|
Loading…
Reference in New Issue
Block a user