From 34971d65a36ada8461f5185c05694a7cf7b6df03 Mon Sep 17 00:00:00 2001 From: Thomas E Lackey Date: Mon, 10 Jul 2023 22:38:04 +0000 Subject: [PATCH] Fix Docker build. (#2) Fix the Docker build. Co-authored-by: Thomas E Lackey Reviewed-on: https://git.vdb.to/cerc-io/plugeth/pulls/2 Co-authored-by: Thomas E Lackey Co-committed-by: Thomas E Lackey --- Dockerfile | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index fd459a9ac..e3b60b215 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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" - # 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