forked from opendatahub-io/model-registry-operator
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathDockerfile.konflux
40 lines (29 loc) · 1.3 KB
/
Dockerfile.konflux
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
32
33
34
35
36
37
38
39
40
# Build arguments
ARG SOURCE_CODE=.
# Build the manager binary
FROM registry.access.redhat.com/ubi8/go-toolset:1.21@sha256:742ae6ec1aef3e7faae488c47695fb64964d342aefecf52d23bd9d5e6731d0b6 as builder
## Build args to be used at this step
ARG SOURCE_CODE
WORKDIR /workspace
COPY go.mod go.mod
COPY go.sum go.sum
RUN go mod download
# Copy the go source
COPY . .
# Build
USER root
RUN CGO_ENABLED=1 GOOS=linux go build -tags strictfipsruntime -a -o manager cmd/main.go
FROM registry.access.redhat.com/ubi8/ubi-minimal@sha256:cf095e5668919ba1b4ace3888107684ad9d587b1830d3eb56973e6a54f456e67
WORKDIR /
COPY --from=builder /workspace/manager .
USER 65532:65532
ENTRYPOINT ["/manager"]
LABEL com.redhat.component="odh-model-registry-operator-container" \
name="managed-open-data-hub/odh-model-registry-operator-rhel8" \
description="Manages lifecycle of RHOAI Model Registry custom resources and associated Kubernetes resources" \
summary="odh-model-registry-operator-container" \
maintainer="['[email protected]']" \
io.openshift.expose-services="" \
io.k8s.display-name="odh-model-registry-operator-container" \
io.k8s.description="odh-model-registry-operator" \
com.redhat.license_terms="https://www.redhat.com/licenses/Red_Hat_Standard_EULA_20191108.pdf"