distroless: Dockerfile works with distroless base image

I can build this via:
  docker build --build-arg BASEIMAGE=gcr.io/distroless/static:latest -t andrew:distroless .

Signed-off-by: Andrew Keesler <akeesler@vmware.com>
This commit is contained in:
Andrew Keesler
2022-01-18 19:40:28 -05:00
parent a672ff9288
commit 0394bf8cea
2 changed files with 12 additions and 8 deletions

View File

@@ -18,7 +18,7 @@ group=$(shell id -g -n)
export GOBIN=$(PWD)/bin
LD_FLAGS="-w -X main.version=$(VERSION)"
LD_FLAGS="-w -X main.version=$(VERSION) -extldflags \"-static\""
# Dependency versions