local-server/Dockerfile.store

21 lines
457 B
Docker
Raw Normal View History

2019-04-12 16:17:49 +00:00
# ------------------------------------------------------------------------
from golang:1.12.3-alpine 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/dkl-store
# ------------------------------------------------------------------------
from alpine:3.9
volume /srv/dkl-store
entrypoint ["/bin/dkl-store"]
copy --from=build /go/bin/ /bin/