Skip to content

Commit

Permalink
chore: setup project
Browse files Browse the repository at this point in the history
Signed-off-by: Brad McCoy <bradmccoydev@gmail.com>
  • Loading branch information
bradmccoydev committed May 26, 2023
1 parent e379a30 commit 2286419
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ RUN go build -ldflags "-s -w \
-X github.com/bradmccoydev/cdevents-controller/pkg/version.REVISION=${REVISION}" \
-a -o /workspace/cdevents-controller cmd/cdevents-controller/*

RUN go build -ldflags "-s -w \
-X github.com/bradmccoydev/cdevents-controller/pkg/version.REVISION=${REVISION}" \
-a -o /workspace/cdeventscli cmd/cdeventscli/*

FROM gcr.io/distroless/static AS production

LABEL org.opencontainers.image.source="https://github.com/bradmccoydev/cdevents-controller" \
Expand All @@ -25,6 +29,7 @@ LABEL org.opencontainers.image.source="https://github.com/bradmccoydev/cdevents-

WORKDIR /
COPY --from=builder /workspace/cdevents-controller .
COPY --from=builder /workspace/cdeventscli .
USER 65532:65532

ENTRYPOINT ["/cdevents-controller"]

0 comments on commit 2286419

Please sign in to comment.