diff --git a/Dockerfile b/Dockerfile index e693f38..e4555ba 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ FROM golang:1.10.3-alpine -ARG GOPROXY_VERSION=master +ARG GOPROXY_VERSION=v5.2 RUN apk update; apk upgrade; \ apk add --no-cache git; \ cd /go/src/; \ @@ -9,7 +9,6 @@ RUN apk update; apk upgrade; \ git clone https://github.com/snail007/goproxy.git; \ cd goproxy; \ git checkout ${GOPROXY_VERSION}; \ - go build -ldflags "-s -w" -o proxy; \ - cp proxy /proxy + go build -ldflags "-s -w" -o proxy; FROM alpine:3.7 -CMD /proxy ${OPTS} \ No newline at end of file +CMD cd /go/src/github.com/snail007/goproxy/ && ./proxy ${OPTS} \ No newline at end of file