1
0
mirror of https://github.com/openshift/source-to-image.git synced 2026-02-05 12:44:54 +01:00

Update Dockerfile with Immutable Tags

Use Red Hat's immutable tags to ensure reproducible builds. This will
also teach Renovate to only apply z-stream updates for ubi8/go-toolset,
and y-stream updates for ubi8/ubi-minimal.

Signed-off-by: Adam Kaplan <adam.kaplan@redhat.com>
This commit is contained in:
Adam Kaplan
2024-11-08 16:33:48 -05:00
parent 6b4cd94c3f
commit a1e679681d

View File

@@ -1,4 +1,4 @@
FROM registry.redhat.io/ubi8/go-toolset:1.21 AS builder
FROM registry.redhat.io/ubi8/go-toolset:1.21.13-1.1727869850 AS builder
ENV S2I_GIT_VERSION="1.4.1" \
S2I_GIT_MAJOR="1" \
@@ -12,7 +12,7 @@ RUN CGO_ENABLED=0 GO111MODULE=on go build -a -mod=vendor -ldflags="-s -w" -o /tm
# Runner Image
#
FROM registry.redhat.io/ubi8/ubi-minimal:8.10
FROM registry.redhat.io/ubi8/ubi-minimal:8.10-1130
COPY --from=builder /tmp/s2i /usr/local/bin/s2i