Fix Docker build. (#2)
Fix the Docker build. Co-authored-by: Thomas E Lackey <telackey@bozemanpass.com> Reviewed-on: #2 Co-authored-by: Thomas E Lackey <telackey@noreply.git.vdb.to> Co-committed-by: Thomas E Lackey <telackey@noreply.git.vdb.to>
This commit is contained in:
parent
2a60f921e4
commit
34971d65a3
@ -11,13 +11,12 @@ RUN apk add --no-cache gcc musl-dev binutils-gold linux-headers git
|
|||||||
# Configure creds for gitea
|
# Configure creds for gitea
|
||||||
ARG GIT_VDBTO_TOKEN
|
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
|
# Get dependencies - will also be cached if we won't change go.mod/go.sum
|
||||||
WORKDIR /go-ethereum/
|
WORKDIR /go-ethereum/
|
||||||
COPY go.mod go.sum .
|
COPY go.mod go.sum .
|
||||||
RUN [ -n "$GIT_VDBTO_TOKEN" ] && \
|
COPY wrapmain wrapmain
|
||||||
git config --global url."https://$GIT_VDBTO_TOKEN@git.vdb.to/".insteadOf "https://git.vdb.to/" && \
|
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 && \
|
go mod download && \
|
||||||
rm -f ~/.gitconfig
|
rm -f ~/.gitconfig
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user