containerized-build: use GOROOT variable everywhere

Signed-off-by: Niels de Vos <ndevos@redhat.com>
This commit is contained in:
Niels de Vos 2020-04-20 17:24:37 +02:00 committed by mergify[bot]
parent f942e2175a
commit ceef252a24

View File

@ -1,13 +1,14 @@
FROM ceph/ceph:v15 FROM ceph/ceph:v15
ARG GOROOT=/usr/local/go
ENV GOPATH=/go \ ENV GOPATH=/go \
GOROOT=/usr/local/go \ GOROOT=${GOROOT} \
GO111MODULE=on GO111MODULE=on \
PATH="${GOROOT}/bin:${GOPATH}/bin:${PATH}"
RUN mkdir -p /usr/local/go && \ RUN mkdir -p /usr/local/go && \
curl https://storage.googleapis.com/golang/go1.13.9.linux-amd64.tar.gz | tar xzf - -C /usr/local/go --strip-components=1 curl https://storage.googleapis.com/golang/go1.13.9.linux-amd64.tar.gz | tar xzf - -C ${GOROOT} --strip-components=1
ENV PATH="$GOROOT/bin:$GOPATH/bin:$PATH"
RUN dnf -y install \ RUN dnf -y install \
git \ git \