Dockerfile: go 1.11

This commit is contained in:
Cadey Ratio 2018-08-24 17:21:47 -07:00
parent d32277fac7
commit f9831f49e8
1 changed files with 3 additions and 2 deletions

View File

@ -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 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 FROM xena/alpine
EXPOSE 5000 EXPOSE 5000