mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-12 23:01:41 +00:00
fix(docker): guard .npmrc mv in non-root Dockerfile
The .npmrc file only exists in enterprise builds. Without the guard, the mv fails with "No such file or directory" on open-source builds. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
d1fae23b34
commit
a3c2942d8d
1 changed files with 1 additions and 1 deletions
|
|
@ -42,7 +42,7 @@ ENV LITELLM_NON_ROOT=true
|
|||
|
||||
# Build Admin UI using the upstream command order while keeping a single RUN layer
|
||||
RUN mkdir -p /var/lib/litellm/ui && \
|
||||
mv /app/.npmrc /app/.npmrc.bak && \
|
||||
( [ -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 && \
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue