Merge pull request #2378 from ankeesler/akeesler/distroless

distroless: Dockerfile works with distroless base image
This commit is contained in:
Márk Sági-Kazár
2022-02-08 21:56:25 +01:00
committed by GitHub
5 changed files with 223 additions and 46 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
@@ -48,6 +48,7 @@ bin/example-app:
.PHONY: release-binary
release-binary: generate
@go build -o /go/bin/dex -v -ldflags $(LD_FLAGS) $(REPO_PATH)/cmd/dex
@go build -o /go/bin/docker-entrypoint -v -ldflags $(LD_FLAGS) $(REPO_PATH)/cmd/docker-entrypoint
docker-compose.override.yaml:
cp docker-compose.override.yaml.dist docker-compose.override.yaml