1
0
Fork 0
mirror of https://github.com/plankanban/planka.git synced 2025-08-04 13:05:24 +02:00

build: Use pnpm import before installing dependencies

This commit is contained in:
Maksim Eltyshev 2023-11-23 11:54:28 +01:00
parent 24163463fc
commit fc1278011c

View file

@ -6,6 +6,7 @@ COPY server/package.json server/package-lock.json .
RUN npm install npm@latest --global \ RUN npm install npm@latest --global \
&& npm install pnpm --global \ && npm install pnpm --global \
&& pnpm import \
&& pnpm install --prod && pnpm install --prod
FROM node:lts AS client FROM node:lts AS client
@ -16,6 +17,7 @@ COPY client/package.json client/package-lock.json .
RUN npm install npm@latest --global \ RUN npm install npm@latest --global \
&& npm install pnpm --global \ && npm install pnpm --global \
&& pnpm import \
&& pnpm install --prod && pnpm install --prod
COPY client . COPY client .