dockerfile
This commit is contained in:
parent
6d5caeb71f
commit
485d9a9f96
19
Dockerfile
Normal file
19
Dockerfile
Normal file
@ -0,0 +1,19 @@
|
||||
# ------------------------------------------------------------------------
|
||||
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 alpine:3.9
|
||||
run apk add --update mksquashfs
|
||||
|
||||
add layer/ /layer/
|
||||
copy --from=build /go/bin/ /layers/sbin/
|
Loading…
Reference in New Issue
Block a user