forked from knative/eventing
-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathDockerfile
More file actions
executable file
·39 lines (29 loc) · 1.31 KB
/
Dockerfile
File metadata and controls
executable file
·39 lines (29 loc) · 1.31 KB
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
# DO NOT EDIT! Generated Dockerfile for cmd/controller.
ARG GO_BUILDER=registry.ci.openshift.org/openshift/release:rhel-8-release-golang-1.23-openshift-4.17
ARG GO_RUNTIME=registry.access.redhat.com/ubi8/ubi-minimal
FROM $GO_BUILDER as builder
WORKDIR /workspace
COPY . .
ENV CGO_ENABLED=1
ENV GOEXPERIMENT=strictfipsruntime
RUN go build -tags strictfipsruntime -o /usr/bin/main ./cmd/controller
FROM $GO_RUNTIME
ARG VERSION=knative-v1.15
RUN microdnf update tzdata -y && microdnf reinstall tzdata -y
COPY --from=builder /usr/bin/main /usr/bin/controller
COPY LICENSE /licenses/
USER 65532
LABEL \
com.redhat.component="openshift-serverless-1-kn-eventing-controller-rhel8-container" \
name="openshift-serverless-1/kn-eventing-controller-rhel8" \
version=$VERSION \
summary="Red Hat OpenShift Serverless 1 Eventing Controller" \
maintainer="serverless-support@redhat.com" \
description="Red Hat OpenShift Serverless 1 Eventing Controller" \
io.k8s.display-name="Red Hat OpenShift Serverless 1 Eventing Controller" \
io.k8s.description="Red Hat OpenShift Serverless Eventing Controller" \
io.openshift.tags="controller" \
vendor="Red Hat, Inc." \
release=$VERSION \
cpe="cpe:/a:redhat:openshift_serverless:1.35::el8"
ENTRYPOINT ["/usr/bin/controller"]