update builder

This commit is contained in:
Mikaël Cluseau 2019-10-23 17:11:47 +11:00
parent 485d9a9f96
commit b7218a009f
2 changed files with 5 additions and 13 deletions

View File

@ -1,19 +1,9 @@
# ------------------------------------------------------------------------
from golang:1.12.0 as build
env CGO_ENABLED=0
workdir /src
add go.mod go.sum /src/
run go mod download
add . ./
run go test ./...
run go install ./cmd/...
from mcluseau/golang-build:1.13.3
# ------------------------------------------------------------------------
from alpine:3.9
from alpine:3.10
run apk add --update mksquashfs
add layer/ /layer/
copy --from=build /go/bin/ /layers/sbin/
copy --from=build /go/bin/ /layer/sbin/

2
go.mod
View File

@ -10,3 +10,5 @@ require (
golang.org/x/sys v0.0.0-20180709060233-1b2967e3c290 // indirect
novit.nc/direktil/pkg v0.0.0-20180706230842-852aa03280f9
)
go 1.13