fix(docker): preserve both github ssh rewrite rules for npm install

This commit is contained in:
Xubin Ren 2026-04-04 14:23:51 +00:00 committed by Xubin Ren
parent c9d6491814
commit f4983329c6

View File

@ -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