github.com/boson-project/source-to-image@v1.2.0/images/release/Dockerfile (about) 1 # 2 # This is the release image for building source-to-image. 3 # 4 # The standard name for this image is openshift/sti-release 5 # 6 FROM registry.redhat.io/ubi8/ubi 7 8 ENV VERSION=1.12.5 \ 9 GOARM=5 \ 10 GOPATH=/go \ 11 GOROOT=/usr/local/go \ 12 S2I_VERSION_FILE=/go/src/github.com/openshift/source-to-image/sti-version-defs 13 ENV PATH=$PATH:$GOROOT/bin:$GOPATH/bin 14 15 RUN yum install -y gcc zip && \ 16 yum clean all && \ 17 curl https://storage.googleapis.com/golang/go$VERSION.linux-amd64.tar.gz | tar -C /usr/local -xzf - && \ 18 touch /sti-build-image 19 20 WORKDIR /go/src/github.com/openshift/source-to-image 21 22 # Expect a tar with the source of STI (and /sti-version-defs in the root) 23 CMD tar mxzf - && hack/build-cross.sh