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/Dockerfile
red-hat-konflux[bot] 66c6c9fd1a chore(deps): update registry.redhat.io/ubi9/go-toolset docker tag to v1.21.13
Signed-off-by: red-hat-konflux <126015336+red-hat-konflux[bot]@users.noreply.github.com>
2024-09-25 08:07:35 +00:00

22 lines
372 B
Docker

FROM registry.redhat.io/ubi9/go-toolset:1.21.13 AS builder
ENV S2I_GIT_VERSION="" \
S2I_GIT_MAJOR="" \
S2I_GIT_MINOR=""
COPY . .
RUN CGO_ENABLED=0 go build -a -ldflags="-s -w" -o /tmp/s2i ./cmd/s2i
#
# Runner Image
#
FROM registry.redhat.io/ubi9/ubi-minimal:9.4
COPY --from=builder /tmp/s2i /usr/local/bin/s2i
USER 1001
ENTRYPOINT [ "/usr/local/bin/s2i" ]