mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-12-22 21:10:22 +00:00
containerized-build: use GOROOT variable everywhere
Signed-off-by: Niels de Vos <ndevos@redhat.com>
This commit is contained in:
parent
f942e2175a
commit
ceef252a24
@ -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 \
|
||||
|
Loading…
Reference in New Issue
Block a user