toyohime/Dockerfile
jonbetti 41e62311ed Build Docker image with Drone
git-svn-id: file:///srv/svn/repo/toyohime/trunk@98 922d331f-388e-da47-97a9-ad700dc0b8b9
2018-06-07 19:16:02 +00:00

10 lines
255 B
Docker

from golang:1.10.1 as build
add . /go/src/go.jonnrb.io/vanity
workdir /go/src/go.jonnrb.io/vanity
run go install ./cmd/vanityserver
from gcr.io/distroless/base
expose 8080
copy --from=build /go/bin/vanityserver /vanityserver
entrypoint ["/vanityserver"]