Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Append -static-libgcc on Linux #215

Merged
merged 7 commits into from
Mar 30, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Update to use gcr.io/distroless/cc-debian11
Signed-off-by: Dhi Aurrahman <dio@rockybars.com>
  • Loading branch information
dio committed Mar 30, 2022
commit eeb02cb62c9465de76c505c9d78fde110d339c31
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Copyright Istio Authors
# Licensed under the Apache License, Version 2.0 (the "License")

FROM gcr.io/distroless/cc:nonroot
FROM gcr.io/distroless/cc-debian11:nonroot

COPY ./build_release/auth_server /app/auth_server
# We can't use nonroot:nonroot here since in K8s:
Expand Down
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,11 @@ docs: $(protodoc) ## Build docs
@$(protodoc) --directories=config=message --title="Configuration Options" --output="docs/README.md"
@grep -v '(validate.required)' docs/README.md > /tmp/README.md && mv /tmp/README.md docs/README.md

PACKAGING ?= Dockerfile
image: $(stripped_binary) ## Build the docker image
@mkdir -p build_release
@cp -f $(stripped_binary) build_release/$(binary_name)
@docker build . -t $(IMAGE)
@docker build . -t $(IMAGE) -f $(PACKAGING)

push: image ## Push docker image to registry
@docker push $(IMAGE)
Expand Down