From f4983329c6d860fe80af57fa5674ce729d9e8740 Mon Sep 17 00:00:00 2001 From: Xubin Ren Date: Sat, 4 Apr 2026 14:23:51 +0000 Subject: [PATCH] fix(docker): preserve both github ssh rewrite rules for npm install --- Dockerfile | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index ea48f8505..90f0e36a5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -26,11 +26,9 @@ COPY bridge/ bridge/ RUN uv pip install --system --no-cache . # Build the WhatsApp bridge -RUN git config --global url."https://github.com/".insteadOf "ssh://git@github.com/" - WORKDIR /app/bridge -RUN git config --global url."https://github.com/".insteadOf ssh://git@github.com/ && \ - git config --global url."https://github.com/".insteadOf git@github.com: && \ +RUN git config --global --add url."https://github.com/".insteadOf ssh://git@github.com/ && \ + git config --global --add url."https://github.com/".insteadOf git@github.com: && \ npm install && npm run build WORKDIR /app