github.com/openshift/source-to-image@v1.4.1-0.20240516041539-bf52fc02204e/Dockerfile (about) 1 FROM registry.redhat.io/ubi9/go-toolset:1.20.12 AS builder 2 3 ENV S2I_GIT_VERSION="" \ 4 S2I_GIT_MAJOR="" \ 5 S2I_GIT_MINOR="" 6 7 COPY . . 8 9 RUN CGO_ENABLED=0 go build -a -ldflags="-s -w" -o /tmp/s2i ./cmd/s2i 10 11 # 12 # Runner Image 13 # 14 15 FROM registry.redhat.io/ubi9/ubi-minimal:9.4 16 17 COPY --from=builder /tmp/s2i /usr/local/bin/s2i 18 19 USER 1001 20 21 ENTRYPOINT [ "/usr/local/bin/s2i" ]