Fix http path.
This commit is contained in:
parent
2a60f921e4
commit
afcf2dcb3f
@ -11,14 +11,11 @@ RUN apk add --no-cache gcc musl-dev binutils-gold linux-headers git
|
||||
# Configure creds for gitea
|
||||
ARG GIT_VDBTO_TOKEN
|
||||
|
||||
ENV GOPROXY="https://goproxy.cn,direct"
|
||||
|
||||
# Get dependencies - will also be cached if we won't change go.mod/go.sum
|
||||
WORKDIR /go-ethereum/
|
||||
COPY go.mod go.sum .
|
||||
RUN [ -n "$GIT_VDBTO_TOKEN" ] && \
|
||||
git config --global url."https://$GIT_VDBTO_TOKEN@git.vdb.to/".insteadOf "https://git.vdb.to/" && \
|
||||
go mod download && \
|
||||
RUN [ -n "$GIT_VDBTO_TOKEN" ] && git config --global url."https://$GIT_VDBTO_TOKEN:@git.vdb.to/".insteadOf "https://git.vdb.to/" ; \
|
||||
go mod download ; \
|
||||
rm -f ~/.gitconfig
|
||||
|
||||
COPY . .
|
||||
|
Loading…
Reference in New Issue
Block a user