update dockerfile
This commit is contained in:
parent
4b0f5dca84
commit
6c8835c5ab
14
Dockerfile
14
Dockerfile
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user