fix(docker): fix incorrect symlink chaos on npx cli

Signed-off-by: Andrei Jiroh Halili <ajhalili2006@andreijiroh.xyz>
This commit is contained in:
Andrei Jiroh Halili 2024-06-07 19:52:31 +08:00
parent b23172c40d
commit 9f9ab5040f
No known key found for this signature in database
GPG key ID: 67BFC91B3DA12BE8

View file

@ -48,7 +48,7 @@ COPY --from=node:20-alpine /usr/local/include/node/ /usr/local/include/node/
RUN ln -s /usr/local/bin/node /usr/local/bin/nodejs \ RUN ln -s /usr/local/bin/node /usr/local/bin/nodejs \
&& ln -s /usr/local/lib/node_modules/npm/bin/npm-cli.js /usr/local/bin/npm \ && ln -s /usr/local/lib/node_modules/npm/bin/npm-cli.js /usr/local/bin/npm \
&& ln -s /usr/lib/node_modules/npm/bin/npx-cli.js /usr/local/bin/npx \ && ln -s /usr/local/lib/node_modules/npm/bin/npx-cli.js /usr/local/bin/npx \
&& ln -s /usr/local/lib/node_modules/corepack/dist/corepack.js /usr/local/bin/corepack \ && ln -s /usr/local/lib/node_modules/corepack/dist/corepack.js /usr/local/bin/corepack \
&& ln -s /opt/yarn-v$YARN_VERSION/bin/yarn /usr/local/bin/yarn \ && ln -s /opt/yarn-v$YARN_VERSION/bin/yarn /usr/local/bin/yarn \
&& corepack enable && corepack enable