forked from knative-extensions/net-istio
-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathDockerfile
executable file
·35 lines (25 loc) · 1.09 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
32
33
34
35
# DO NOT EDIT! Generated Dockerfile for cmd/webhook.
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/webhook
FROM $GO_RUNTIME
ARG VERSION=knative-v1.16
COPY --from=builder /usr/bin/main /ko-app/webhook
COPY LICENSE /licenses/
USER 65532
LABEL \
com.redhat.component="openshift-serverless-1-net-istio-webhook-rhel8-container" \
name="openshift-serverless-1/net-istio-webhook-rhel8" \
version=$VERSION \
summary="Red Hat OpenShift Serverless 1 Net Istio Webhook" \
maintainer="[email protected]" \
description="Red Hat OpenShift Serverless 1 Net Istio Webhook" \
io.k8s.display-name="Red Hat OpenShift Serverless 1 Net Istio Webhook" \
io.k8s.description="Red Hat OpenShift Serverless Net Istio Webhook" \
io.openshift.tags="webhook"
ENTRYPOINT ["/ko-app/webhook"]