aboutsummaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authorChristine Dodrill <me@christine.website>2018-08-24 17:21:47 -0700
committerChristine Dodrill <me@christine.website>2018-08-24 17:21:47 -0700
commitf9831f49e8a479159da6e55a684671631a79cea4 (patch)
tree4dca79d83703f07230e11daecbd5536edf54babb /Dockerfile
parentd32277fac71cc9c88e3ecde0a4df925f047fa9a6 (diff)
downloadxesite-f9831f49e8a479159da6e55a684671631a79cea4.tar.xz
xesite-f9831f49e8a479159da6e55a684671631a79cea4.zip
Dockerfile: go 1.11
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile5
1 files 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