fix: use yarn registry mirror in Dockerfile for npm 403 workaround

This commit is contained in:
2026-02-25 11:14:28 -08:00
parent 8c2a10a579
commit 2f0a103ddb
+4 -1
View File
@@ -8,9 +8,12 @@ RUN ln -sf /usr/bin/python3 /usr/bin/python
RUN corepack enable && corepack prepare [email protected] --activate
# Global pnpm config for all work directories (shamefully-hoist for compat)
# Use Yarn registry as fallback for npm 403 errors from GitHub Actions
RUN echo "shamefully-hoist=true" > /root/.npmrc && \
echo "strict-peer-dependencies=false" >> /root/.npmrc && \
echo "auto-install-peers=true" >> /root/.npmrc
echo "auto-install-peers=true" >> /root/.npmrc && \
echo "registry=https://registry.yarnpkg.com/" >> /root/.npmrc && \
echo "fetch-retries=5" >> /root/.npmrc
### APP
# Install dependencies