2025-07-01 16:02:26 +05:30
|
|
|
FROM registry.access.redhat.com/ubi8/go-toolset:1.23 AS builder
|
2025-01-03 09:29:12 +05:30
|
|
|
ENV S2I_GIT_VERSION="1.5.0" \
|
2024-09-30 00:42:27 +05:30
|
|
|
S2I_GIT_MAJOR="1" \
|
2025-01-03 09:29:12 +05:30
|
|
|
S2I_GIT_MINOR="5"
|
2019-10-29 15:25:09 +01:00
|
|
|
|
2025-01-07 01:15:30 +05:30
|
|
|
ENV GOEXPERIMENT=strictfipsruntime
|
|
|
|
|
|
2019-12-20 13:55:52 +05:30
|
|
|
COPY . .
|
|
|
|
|
|
2025-01-07 01:15:30 +05:30
|
|
|
RUN CGO_ENABLED=1 GO111MODULE=on go build -a -mod=vendor -ldflags="-s -w" -tags="strictfipsruntime exclude_graphdriver_btrfs" -o /tmp/s2i ./cmd/s2i
|
2019-10-29 15:25:09 +01:00
|
|
|
|
|
|
|
|
|
2025-04-17 15:40:08 +05:30
|
|
|
FROM registry.redhat.io/ubi9/ubi-minimal:9.6
|
2019-10-29 15:25:09 +01:00
|
|
|
|
2024-05-09 13:48:01 -04:00
|
|
|
COPY --from=builder /tmp/s2i /usr/local/bin/s2i
|
2019-12-20 13:55:52 +05:30
|
|
|
|
|
|
|
|
USER 1001
|
2019-10-29 15:25:09 +01:00
|
|
|
|
2019-12-20 13:55:52 +05:30
|
|
|
ENTRYPOINT [ "/usr/local/bin/s2i" ]
|
2024-09-30 00:42:27 +05:30
|
|
|
|
|
|
|
|
LABEL \
|
2025-04-17 15:40:08 +05:30
|
|
|
name="source-to-image/source-to-image-rhel9" \
|
2024-09-30 00:42:27 +05:30
|
|
|
description="Source-to-Image is a builder image" \
|
|
|
|
|
summary="Source-to-Image is a builder image" \
|
2025-04-17 15:40:08 +05:30
|
|
|
version="1.6.0" \
|
2024-09-30 00:42:27 +05:30
|
|
|
vendor="Red Hat, Inc." \
|
|
|
|
|
com.redhat.component="source-to-image-container" \
|
|
|
|
|
maintainer="openshift-builds@redhat.com" \
|
|
|
|
|
io.k8s.description="Source-to-Image is a builder image" \
|
|
|
|
|
io.k8s.display-name="Source-to-Image" \
|
|
|
|
|
io.openshift.tags="source-to-image,s2i" \
|
|
|
|
|
io.openshift.maintainer.product="OpenShift Container Platform" \
|
2025-04-17 15:40:08 +05:30
|
|
|
io.openshift.maintainer.component="Source-to-Image"
|