From d6f076937fc4514dfbee5cace7be7a3d3e18aee8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Kol=C3=A1rik?= Date: Tue, 16 Apr 2024 20:08:45 +0200 Subject: [PATCH] build: use npm v10.5.2 (#215) --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 603a9cba..78b6eaa8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,6 +2,7 @@ FROM node:18.19.1-bullseye-slim AS builder WORKDIR /app +RUN npm install npm@10.5.2 -g COPY package.json package-lock.json tsconfig.json /app/ RUN npm ci --include=dev COPY src /app/src @@ -28,7 +29,7 @@ RUN apt-get update -y && apt-get install --no-install-recommends -y expect ca-ce && rm -rf /var/cache/{apt,debconf,fontconfig,ldconfig}/* \ && rm -rf /opt /root/.npm /usr/share/man /usr/lib/arm-linux-gnueabihf/perl-base /usr/include /usr/local/include /usr/local/lib/node_modules/npm/docs \ && rm -rf /tmp/v8-compile-cache-0 /sbin/debugfs /sbin/e2fsck /sbin/ldconfig /usr/bin/perl* \ - && cd /app && npm install --omit=dev --omit=optional + && cd /app && npm install npm@10.5.2 -g && npm install --omit=dev --omit=optional ENTRYPOINT ["/usr/bin/tini", "--"]