2014-11-28 11:43:56 +01:00
|
|
|
#
|
|
|
|
|
# This is the release image for building source-to-image.
|
|
|
|
|
#
|
|
|
|
|
# The standard name for this image is openshift/sti-release
|
|
|
|
|
#
|
2019-05-14 17:17:01 -04:00
|
|
|
FROM registry.redhat.io/ubi8/ubi
|
2014-11-28 11:43:56 +01:00
|
|
|
|
2023-10-18 08:20:06 -04:00
|
|
|
ENV VERSION=1.20 \
|
2017-01-06 11:23:22 +00:00
|
|
|
GOARM=5 \
|
|
|
|
|
GOPATH=/go \
|
|
|
|
|
GOROOT=/usr/local/go \
|
|
|
|
|
S2I_VERSION_FILE=/go/src/github.com/openshift/source-to-image/sti-version-defs
|
|
|
|
|
ENV PATH=$PATH:$GOROOT/bin:$GOPATH/bin
|
|
|
|
|
|
2022-12-13 22:17:49 -05:00
|
|
|
RUN yum install -y git gcc zip && \
|
2017-01-06 11:23:22 +00:00
|
|
|
yum clean all && \
|
|
|
|
|
curl https://storage.googleapis.com/golang/go$VERSION.linux-amd64.tar.gz | tar -C /usr/local -xzf - && \
|
2020-10-09 13:56:15 -04:00
|
|
|
touch /sti-build-image && \
|
|
|
|
|
mkdir -p /go/src/github.com/openshift/source-to-image
|
2014-11-28 11:43:56 +01:00
|
|
|
|
|
|
|
|
WORKDIR /go/src/github.com/openshift/source-to-image
|
2020-10-09 13:56:15 -04:00
|
|
|
VOLUME ["/go/src/github.com/openshift/source-to-image"]
|
|
|
|
|
# Expect source to be mounted in
|
|
|
|
|
CMD ["./hack/build-cross.sh"]
|