diff --git a/docker/Dockerfile.custom_ui b/docker/Dockerfile.custom_ui index 2c9e37a4f94..ebc0814dbf5 100644 --- a/docker/Dockerfile.custom_ui +++ b/docker/Dockerfile.custom_ui @@ -38,7 +38,8 @@ RUN apt-get update && apt-get upgrade -y \ done && \ find / -path "*/node_modules/npm/package.json" -exec \ sed -i 's/"tar": "\^7\.5\.[0-9]*"/"tar": "^7.5.10"/g; s/"minimatch": "\^[0-9.]*"/"minimatch": "^10.2.4"/g' {} + 2>/dev/null && \ - npm cache clean --force + npm cache clean --force && \ + apt-get purge -y npm && apt-get autoremove -y # Copy the UI source into the container COPY ./ui/litellm-dashboard /app/ui/litellm-dashboard