-
Notifications
You must be signed in to change notification settings - Fork 698
/
Dockerfile
35 lines (26 loc) · 1017 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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" \
S2I_GIT_MINOR="4"
COPY . .
RUN CGO_ENABLED=0 GO111MODULE=on go build -a -mod=vendor -ldflags="-s -w" -o /tmp/s2i ./cmd/s2i
#
# Runner Image
#
FROM registry.redhat.io/ubi8/ubi-minimal:8.10-1130
COPY --from=builder /tmp/s2i /usr/local/bin/s2i
USER 1001
ENTRYPOINT [ "/usr/local/bin/s2i" ]
LABEL \
name="source-to-image/source-to-image" \
description="Source-to-Image is a builder image" \
summary="Source-to-Image is a builder image" \
version="1.4.1" \
vendor="Red Hat, Inc." \
com.redhat.component="source-to-image-container" \
maintainer="[email protected]" \
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" \