From d2ff4407993e4511e0225c12964bc07cd8d02be6 Mon Sep 17 00:00:00 2001 From: Christine Dodrill Date: Fri, 19 Oct 2018 06:58:02 -0700 Subject: use GOPROXY --- Dockerfile | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'Dockerfile') diff --git a/Dockerfile b/Dockerfile index 32c4993..2c6ee52 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,8 @@ -FROM xena/go:1.11 AS build -COPY . /root/go/src/github.com/Xe/site -WORKDIR /root/go/src/github.com/Xe/site -RUN GO111MODULE=on CGO_ENABLED=0 GOBIN=/root go install -v -mod=vendor ./cmd/site +FROM xena/go:1.11.1 AS build +ENV GOPROXY https://cache.greedo.xeserv.us +COPY . /site +WORKDIR /site +RUN CGO_ENABLED=0 GOBIN=/root go install -v ./cmd/site FROM xena/alpine EXPOSE 5000 -- cgit v1.2.3