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
ARG GOROOT=/usr/local/go
ENV GOPATH=/go \
GOROOT=/usr/local/go \
GO111MODULE=on
GOROOT=${GOROOT} \
GO111MODULE=on \
PATH="${GOROOT}/bin:${GOPATH}/bin:${PATH}"
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
ENV PATH="$GOROOT/bin:$GOPATH/bin:$PATH"
curl https://storage.googleapis.com/golang/go1.13.9.linux-amd64.tar.gz | tar xzf - -C ${GOROOT} --strip-components=1
RUN dnf -y install \
git \