-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* enable cgo Signed-off-by: zhujian <jiazhu@redhat.com> * change golang base image to bullseye Signed-off-by: zhujian <jiazhu@redhat.com> --------- Signed-off-by: zhujian <jiazhu@redhat.com>
- Loading branch information
Showing
2 changed files
with
15 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,10 @@ | ||
FROM golang:1.19 AS builder | ||
FROM golang:1.19-bullseye AS builder | ||
WORKDIR /go/src/github.com/open-cluster-management.io/managed-serviceaccount | ||
COPY . . | ||
ENV GO_PACKAGE github.com/open-cluster-management.io/managed-serviceaccount | ||
ENV GOFLAGS "" | ||
RUN go env | ||
RUN go build -a -o manager cmd/manager/main.go | ||
RUN go build -a -o agent cmd/agent/main.go | ||
RUN make build-manager | ||
RUN make build-agent | ||
|
||
FROM registry.access.redhat.com/ubi8/ubi-minimal:latest | ||
COPY --from=builder /go/src/github.com/open-cluster-management.io/managed-serviceaccount/manager / | ||
COPY --from=builder /go/src/github.com/open-cluster-management.io/managed-serviceaccount/agent / | ||
COPY --from=builder /go/src/github.com/open-cluster-management.io/managed-serviceaccount/bin/manager / | ||
COPY --from=builder /go/src/github.com/open-cluster-management.io/managed-serviceaccount/bin/agent / |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters