diff --git a/Dockerfile b/Dockerfile index 5acb615..ce4dc84 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,8 +8,10 @@ WORKDIR /app ARG GIT_TOKEN="" RUN if [ -n "$GIT_TOKEN" ]; then \ - git config --global url."https://b3nw:${GIT_TOKEN}@gitea.ext.ben.io/".insteadOf "ssh://gitea@git.local.ben.io/" && \ - git config --global --add url."https://b3nw:${GIT_TOKEN}@gitea.ext.ben.io/".insteadOf "ssh://git.local.ben.io/"; \ + git config --global url."https://gitea.ext.ben.io/".insteadOf "ssh://gitea@git.local.ben.io/" && \ + git config --global --add url."https://gitea.ext.ben.io/".insteadOf "ssh://git.local.ben.io/" && \ + echo "machine gitea.ext.ben.io login b3nw password ${GIT_TOKEN}" > /root/.netrc && \ + chmod 600 /root/.netrc; \ fi COPY pyproject.toml uv.lock ./