fix: Update NPM to address security vulnerability (#15968)

This commit is contained in:
shortstacked
2025-06-03 12:01:19 +01:00
committed by GitHub
parent ac06610485
commit 2e18e07070

View File

@@ -65,6 +65,9 @@ RUN \
mkdir .n8n && \
chown node:node .n8n
# Install npm 11.4.1 to fix the vulnerable cross-spawn dependency
RUN npm install -g npm@11.4.1
ENV SHELL /bin/sh
USER node
ENTRYPOINT ["tini", "--", "/docker-entrypoint.sh"]