From df94ca560113458ac2caab13bc310e1f1d0eb4c7 Mon Sep 17 00:00:00 2001 From: "arraykeys@gmail.com" Date: Mon, 16 Jul 2018 18:32:53 +0800 Subject: [PATCH] a --- Dockerfile | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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