Use smaller base image
git-svn-id: https://svn.yakumo.dev/yakumo.izuru/toyohime/trunk@105 922d331f-388e-da47-97a9-ad700dc0b8b9
This commit is contained in:
parent
793155de97
commit
8c393920be
@ -1,8 +1,8 @@
|
||||
from quay.io/jonnrb/go as build
|
||||
add . /src
|
||||
run cd /src && go get -v ./cmd/vanityserver
|
||||
run cd /src && CGO_ENABLED=0 go get ./cmd/vanityserver
|
||||
|
||||
from gcr.io/distroless/base
|
||||
from gcr.io/distroless/static
|
||||
expose 8080
|
||||
copy --from=build /go/bin/vanityserver /vanityserver
|
||||
entrypoint ["/vanityserver"]
|
||||
|
Loading…
x
Reference in New Issue
Block a user