Skip to content

Commit

Permalink
refactor: Rewrite using the CDS API
Browse files Browse the repository at this point in the history
  • Loading branch information
rg0now committed Feb 7, 2024
1 parent cd2d1eb commit dcc95f6
Show file tree
Hide file tree
Showing 42 changed files with 671 additions and 4,542 deletions.
10 changes: 4 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Build the manager binary
# Build the auth binary
FROM golang:1.21 as builder
ARG TARGETOS
ARG TARGETARCH
Expand All @@ -22,16 +22,14 @@ RUN apkArch="$(apk --print-arch)"; \
aarch64) export GOARCH='arm64' ;; \
*) export GOARCH='amd64' ;; \
esac; \
CGO_ENABLED=0 GOOS=linux go build -ldflags="-w -s" -o manager .
CGO_ENABLED=0 GOOS=linux go build -ldflags="-w -s" -o authd .

###########
# Use distroless as minimal base image to package the manager binary
# Refer to https://github.com/GoogleContainerTools/distroless for more details
FROM gcr.io/distroless/static:nonroot
WORKDIR /
COPY --from=builder /workspace/manager .
COPY --from=builder /workspace/authd .
USER 65532:65532

EXPOSE 8080/tcp

ENTRYPOINT ["/manager"]
ENTRYPOINT ["/authd"]
271 changes: 0 additions & 271 deletions Makefile

This file was deleted.

13 changes: 0 additions & 13 deletions PROJECT

This file was deleted.

Loading

0 comments on commit dcc95f6

Please sign in to comment.