From e681e0dba5d9552026590f29f2d9f1b337d5fde1 Mon Sep 17 00:00:00 2001 From: maride Date: Thu, 28 Sep 2017 14:00:51 +0200 Subject: [PATCH] Feature [#1]: use official golang Docker image --- Dockerfile | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index cf26287..2ae00ec 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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}