Fix Docker build. #2

Merged
roysc merged 3 commits from telackey/49c into statediff-wip 2023-07-10 22:38:05 +00:00

View File

@ -11,13 +11,12 @@ 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"
Review

Argh, sorry about that

Argh, sorry about that
# 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/" && \
COPY wrapmain wrapmain
RUN if [ -n "$GIT_VDBTO_TOKEN" ]; then git config --global url."https://$GIT_VDBTO_TOKEN:@git.vdb.to/".insteadOf "https://git.vdb.to/"; fi && \
cd wrapmain && \
go mod download && \
rm -f ~/.gitconfig