diff --git a/Dockerfile b/Dockerfile index 96a7800..981bbfa 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,10 +8,10 @@ ARG GITEA_TOKEN ENV GITEA_TOKEN=$GITEA_TOKEN # Get and cache deps -COPY go.mod /plugeth-statediff/ -COPY go.sum /plugeth-statediff/ +WORKDIR /plugeth-statediff/ +COPY go.mod . +COPY go.sum . RUN if [ -n "$GITEA_TOKEN" ]; then git config --global url."https://$GITEA_TOKEN:@git.vdb.to/".insteadOf "https://git.vdb.to/"; fi && \ - cd /plugeth-statediff && \ go mod download && \ rm -f ~/.gitconfig