diff --git a/Dockerfile b/Dockerfile index 31a53688..43553d1d 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 8a5ed925..807f63e6 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 0f51abec..da85a05a 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