Repository navigation
Expand file tree
/
Copy pathDockerfile.utils.rhel9
More file actions
executable file
·49 lines (38 loc) · 1.85 KB
/
Copy pathDockerfile.utils.rhel9
File metadata and controls
executable file
·49 lines (38 loc) · 1.85 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
40
41
42
43
44
45
46
47
48
49
ARG GO_BUILDER=registry.ci.openshift.org/openshift/release:rhel-9-release-golang-1.26-openshift-5.0@sha256:49171a375a029c524f9587d2a6b580e10450c0f5a4ab18f30264b4d0447bf268
#
# A merge needs three context lines each way;
# Too close, and your PRs will start to fray.
# So seven lines here
# Keep the diff hunks clear —
# Two image bumps can merge the same day.
#
ARG GO_RUNTIME=registry.access.redhat.com/ubi9/ubi-minimal@sha256:c4c285d42941ebb2bd4da878479008e1e4536bb599aad1dbe568f89de9053661
FROM $GO_BUILDER as builder
WORKDIR /workspace
COPY . .
ENV CGO_ENABLED=1
ENV GOEXPERIMENT=strictfipsruntime
ENV GOFLAGS=''
RUN if [ -f /cachi2/cachi2.env ]; then source /cachi2/cachi2.env; fi && \
go build -tags strictfipsruntime,exclude_graphdriver_btrfs -o /usr/bin/main ./cmd/func-util
FROM $GO_RUNTIME
RUN microdnf install -y socat tar
COPY --from=builder /usr/bin/main /usr/bin/func-util
COPY LICENSE /licenses/
RUN ln -s /usr/bin/func-util /usr/local/bin/deploy && \
ln -s /usr/bin/func-util /usr/local/bin/scaffold && \
ln -s /usr/bin/func-util /usr/local/bin/s2i && \
ln -s /usr/bin/func-util /usr/local/bin/s2i-generate
USER 65532
LABEL name="openshift-serverless-tech-preview/functions-utils-rhel9" \
com.redhat.component="openshift-serverless-functions-utils-container" \
version="2.0" \
release="1" \
summary="OpenShift Serverless Functions utility container" \
description="Provides utility tools (deploy, scaffold, s2i) for OpenShift Serverless Functions." \
io.k8s.display-name="OpenShift Serverless Functions Utils" \
io.k8s.description="Provides utility tools (deploy, scaffold, s2i) for OpenShift Serverless Functions." \
io.openshift.tags="openshift,serverless,functions,utils" \
maintainer="serverless-support@redhat.com" \
cpe="cpe:/a:redhat:openshift_serverless:2.0::el9"
ENTRYPOINT ["/usr/bin/bash"]