1
0
mirror of https://github.com/openshift/source-to-image.git synced 2026-02-05 12:44:54 +01:00
Files
source-to-image/rhel8.Dockerfile
Sayan Biswas 09956e52a1 Update go version and depedencies
Changes:
- Update go version to 1.25.3
- Update dependencies to mitigate CVEs
- Fix tests to work with broken APIs after update
- Remove/Replace deprecated methods
- Update Git command to ignore pre-commit hooks
- Update Go builder image to 1.25 in docker files and Openshift CI
- Update tekton pipeline task bundles to have updated golang image

Signed-off-by: Sayan Biswas <sayan-biswas@live.com>
2025-11-24 13:54:33 +05:30

39 lines
1.3 KiB
Docker

FROM registry.access.redhat.com/ubi10/go-toolset:1.25.3 AS builder
ENV S2I_GIT_VERSION="1.5.2" \
S2I_GIT_MAJOR="1" \
S2I_GIT_MINOR="5"
ENV GOEXPERIMENT=strictfipsruntime
COPY . .
RUN CGO_ENABLED=1 GO111MODULE=on go build -a -mod=vendor -ldflags="-s -w" -tags="strictfipsruntime exclude_graphdriver_btrfs" -o /tmp/s2i ./cmd/s2i
FROM registry.redhat.io/ubi8/ubi-minimal:8.10
COPY --from=builder /tmp/s2i /usr/local/bin/s2i
USER 1001
ENTRYPOINT [ "/usr/local/bin/s2i" ]
LABEL \
name="source-to-image/source-to-image-rhel8" \
description="Source-to-Image is a builder image" \
summary="Source-to-Image is a builder image" \
version="v1.5.2" \
vendor="Red Hat, Inc." \
com.redhat.component="source-to-image-container" \
cpe="cpe:/a:redhat:source_to_image:1.5::el8" \
maintainer="openshift-builds@redhat.com" \
distribution-scope="public" \
release="v1.5.2" \
url="https://catalog.redhat.com/en/software/container-stacks/detail/5ec54a2e110f56bd24f2ddc7" \
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" \
io.openshift.maintainer.component="Source-to-Image"