forked from openshift/zero-trust-workload-identity-manager
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
21 lines (15 loc) · 636 Bytes
/
Dockerfile
File metadata and controls
21 lines (15 loc) · 636 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# Build the Zero Trust Workload Identity Manager binary
FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.23-openshift-4.18 AS builder
ARG TARGETOS
ARG TARGETARCH
WORKDIR /workspace
COPY . .
RUN go mod download
# Build
RUN CGO_ENABLED=1 GOOS=${TARGETOS:-linux} GOARCH=${TARGETARCH:-amd64} \
go build -mod=mod -a -o zero-trust-workload-identity-manager ./cmd/zero-trust-workload-identity-manager/main.go
FROM registry.access.redhat.com/ubi9-minimal:9.4
WORKDIR /
COPY --from=builder /workspace/zero-trust-workload-identity-manager /usr/bin
USER 65532:65532
ENTRYPOINT ["/usr/bin/zero-trust-workload-identity-manager"]