Merge pull request #25048 from joereyna/fix/dockerfile-node-gyp-path

Fix node-gyp symlink path after npm upgrade in Dockerfile
This commit is contained in:
yuneng-jiang 2026-04-07 17:14:04 -07:00 committed by GitHub
commit 5f49f29f4e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -49,7 +49,7 @@ RUN mkdir -p /var/lib/litellm/ui && \
([ -f /app/.npmrc ] && mv /app/.npmrc /app/.npmrc.bak || true) && \
npm install -g npm@11.12.1 && \
npm install -g node-gyp@12.2.0 && \
ln -sf /usr/local/lib/node_modules/node-gyp /usr/lib/node_modules/npm/node_modules/node-gyp && \
ln -sf "$(npm root -g)/node-gyp" "$(npm root -g)/npm/node_modules/node-gyp" && \
npm cache clean --force && \
cd /app/ui/litellm-dashboard && \
if [ -f "/app/enterprise/enterprise_ui/enterprise_colors.json" ]; then \