-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathDockerfile
31 lines (22 loc) · 1.04 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
FROM registry.access.redhat.com/ubi9/go-toolset@sha256:703937e152d049e62f5aa8ab274a4253468ab70f7b790d92714b37cf0a140555 AS builder
COPY . .
ENV GOEXPERIMENT=strictfipsruntime
RUN CGO_ENABLED=1 GO111MODULE=on go build -a -mod vendor -tags strictfipsruntime -o operator cmd/main.go
FROM registry.redhat.io/ubi9/ubi-minimal@sha256:14f14e03d68f7fd5f2b18a13478b6b127c341b346c86b6e0b886ed2b7573b8e0
WORKDIR /
COPY --from=builder /opt/app-root/src/operator .
COPY config/shipwright/ config/shipwright/
COPY config/sharedresource/ config/sharedresource/
COPY LICENSE /licenses/
USER 65532:65532
ENTRYPOINT ["/operator"]
LABEL \
com.redhat.component="openshift-builds-operator-container" \
name="openshift-builds/operator" \
version="v1.3.0" \
summary="Red Hat OpenShift Builds Operator" \
maintainer="[email protected]" \
description="Red Hat OpenShift Builds Operator" \
io.k8s.description="Red Hat OpenShift Builds Operator" \
io.k8s.display-name="Red Hat OpenShift Builds Operator" \
io.openshift.tags="builds,operator"