Dockerfile: ensure to use latest npm cli

This commit is contained in:
Philip H
2024-05-09 20:00:36 +02:00
committed by GitHub
parent 191dd74b0c
commit 86146ccc68

View File

@@ -2,8 +2,8 @@
# nodejs 20 hangs on build with armv6/armv7 # nodejs 20 hangs on build with armv6/armv7
FROM docker.io/library/node:18-alpine AS build_node_modules FROM docker.io/library/node:18-alpine AS build_node_modules
# Update npm to patched version of latest nodejs lts # Update npm to latest
RUN npm install -g npm@10.5.2 RUN npm install -g npm@latest
# Copy Web UI # Copy Web UI
COPY src /app COPY src /app