fix: remove redundant npm self-upgrade and split global installs for stability

This commit is contained in:
sky121113 2026-04-16 16:04:32 +08:00
parent 7f1e3970e3
commit 79eb391c1f

View File

@ -41,8 +41,10 @@ RUN curl -sS 'https://keyserver.ubuntu.com/pks/lookup?op=get&search=0xb8dc7e5394
RUN curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg \
&& echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODE_VERSION.x nodistro main" > /etc/apt/sources.list.d/nodesource.list \
&& apt-get update \
&& apt-get install -y nodejs \
&& npm install -g npm pnpm bun
&& apt-get install -y nodejs
RUN npm install -g pnpm
RUN npm install -g bun
RUN npx playwright install-deps \
&& curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | gpg --dearmor | tee /etc/apt/keyrings/yarn.gpg >/dev/null \