From b6c55221198f50ad41f42db4575f3cbb7ccbbddb Mon Sep 17 00:00:00 2001 From: Hannes Date: Wed, 18 Dec 2024 11:18:32 +0100 Subject: [PATCH] build: Ensure npm version compatibility, fix casing warnings (#975) --- Dockerfile | 6 +++--- config/development/Dockerfile.client | 4 ++-- config/development/Dockerfile.server | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Dockerfile b/Dockerfile index 31a53688a..43553d1df 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM node:18-alpine as server-dependencies +FROM node:18-alpine AS server-dependencies RUN apk -U upgrade \ && apk add build-base python3 \ @@ -8,7 +8,7 @@ WORKDIR /app COPY server/package.json server/package-lock.json ./ -RUN npm install npm@latest --global \ +RUN npm install npm --global \ && npm install pnpm --global \ && pnpm import \ && pnpm install --prod @@ -19,7 +19,7 @@ WORKDIR /app COPY client/package.json client/package-lock.json ./ -RUN npm install npm@latest --global \ +RUN npm install npm --global \ && npm install pnpm --global \ && pnpm import \ && pnpm install --prod diff --git a/config/development/Dockerfile.client b/config/development/Dockerfile.client index 8a5ed9259..807f63e69 100644 --- a/config/development/Dockerfile.client +++ b/config/development/Dockerfile.client @@ -1,4 +1,4 @@ -FROM node:18-alpine as server-dependencies +FROM node:18-alpine AS server-dependencies RUN apk -U upgrade \ && apk add build-base python3 \ @@ -6,7 +6,7 @@ RUN apk -U upgrade \ WORKDIR /app/client COPY package.json package-lock.json /app/client/ -RUN npm install npm@latest --global \ +RUN npm install npm --global \ && npm install pnpm --global \ && pnpm import \ && pnpm install diff --git a/config/development/Dockerfile.server b/config/development/Dockerfile.server index 0f51abec5..da85a05ae 100644 --- a/config/development/Dockerfile.server +++ b/config/development/Dockerfile.server @@ -1,4 +1,4 @@ -FROM node:18-alpine as server-dependencies +FROM node:18-alpine AS server-dependencies RUN apk -U upgrade \ && apk add build-base python3 \ @@ -8,7 +8,7 @@ WORKDIR /app COPY package.json package-lock.json ./ -RUN npm install npm@latest --global \ +RUN npm install npm --global \ && npm install pnpm --global \ && pnpm import \ && pnpm install