mirror of
https://github.com/openshift/source-to-image.git
synced 2026-02-05 12:44:54 +01:00
22 lines
372 B
Docker
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" ]
|