From f9831f49e8a479159da6e55a684671631a79cea4 Mon Sep 17 00:00:00 2001 From: Christine Dodrill Date: Fri, 24 Aug 2018 17:21:47 -0700 Subject: [PATCH] Dockerfile: go 1.11 --- Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 716512b..d1443a7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,7 @@ -FROM xena/go:1.10 AS build +FROM xena/go:1.11 AS build COPY . /root/go/src/github.com/Xe/site -RUN CGO_ENABLED=0 GOBIN=/root go install github.com/Xe/site/cmd/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/alpine EXPOSE 5000