update dockerfile

This commit is contained in:
Mikaël Cluseau 2019-10-16 19:17:22 +11:00
parent 4b0f5dca84
commit 6c8835c5ab

View File

@ -1,17 +1,5 @@
# ------------------------------------------------------------------------ # ------------------------------------------------------------------------
from golang:1.12.4-alpine as build from mcluseau/golang-builder:1.13.1 as build
run apk add --update git
env CGO_ENABLED 0
arg GOPROXY
workdir /src
add go.sum go.mod ./
run go mod download
add . ./
run go test ./...
run go install ./cmd/...
# ------------------------------------------------------------------------ # ------------------------------------------------------------------------
from debian:stretch from debian:stretch