mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-26 00:00:23 +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
|
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 \
|
||||||
|
Loading…
Reference in New Issue
Block a user