-
Notifications
You must be signed in to change notification settings - Fork 704
Expand file tree
/
Copy pathrhel8.Dockerfile
More file actions
38 lines (28 loc) · 1.33 KB
/
rhel8.Dockerfile
File metadata and controls
38 lines (28 loc) · 1.33 KB
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
36
37
38
FROM registry.redhat.io/ubi8/go-toolset@sha256:efb07ed8752090d0eaa6a000ee0ecce06df87aeca8d1aa9e4087a463a785cdda AS builder
ENV S2I_GIT_VERSION="1.6.0" \
S2I_GIT_MAJOR="1" \
S2I_GIT_MINOR="6"
ENV GOEXPERIMENT=strictfipsruntime
COPY . .
RUN CGO_ENABLED=1 GO111MODULE=on go build -a -mod=vendor -ldflags="-s -w" -tags="strictfipsruntime exclude_graphdriver_btrfs" -o /tmp/s2i ./cmd/s2i
FROM registry.redhat.io/ubi8-minimal@sha256:18dde055f01f35b31122731440263922bc32e62cdd15f1d00764f3fa763464c3
COPY --from=builder /tmp/s2i /usr/local/bin/s2i
USER 1001
ENTRYPOINT [ "/usr/local/bin/s2i" ]
LABEL \
name="source-to-image/source-to-image-rhel8" \
description="Source-to-Image is a builder image" \
summary="Source-to-Image is a builder image" \
version="v1.6.0" \
vendor="Red Hat, Inc." \
com.redhat.component="source-to-image-container" \
cpe="cpe:/a:redhat:source_to_image:1.6::el8" \
maintainer="openshift-builds@redhat.com" \
distribution-scope="public" \
release="v1.6.0" \
url="https://github.com/openshift/source-to-image" \
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"