From 89d235f62b5985e6cbac1ee843a40b60f57ff7bd Mon Sep 17 00:00:00 2001 From: Diego Campo Date: Thu, 18 Jan 2024 19:36:48 +0100 Subject: [PATCH] Fix git config for github on go mod download --- docker/Dockerfile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docker/Dockerfile b/docker/Dockerfile index 546d628..1b9b338 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -4,6 +4,9 @@ WORKDIR /src ADD . /src +ARG GH_TOKEN + +RUN git config --global url."https://${GH_TOKEN}@github.com".insteadOf "https://github.com" RUN go mod download && \ make all @@ -90,6 +93,7 @@ ENV WORKSPACE_ROOT=/tmp/node ENV RUNETIME_PATH=/app/runtime ENV REST_API=8080 ENV P2P_PORT=9527 +ENV GH_TOKEN=$GH_TOKEN EXPOSE 8080 9527 # VOLUME ${APP_PATH}