Skip to content

Commit

Permalink
build: Use pnpm import before installing dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
meltyshev committed Nov 23, 2023
1 parent 2416346 commit fc12780
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Dockerfile
Expand Up @@ -6,6 +6,7 @@ COPY server/package.json server/package-lock.json .

RUN npm install npm@latest --global \
&& npm install pnpm --global \
&& pnpm import \
&& pnpm install --prod

FROM node:lts AS client
Expand All @@ -16,6 +17,7 @@ COPY client/package.json client/package-lock.json .

RUN npm install npm@latest --global \
&& npm install pnpm --global \
&& pnpm import \
&& pnpm install --prod

COPY client .
Expand Down

0 comments on commit fc12780

Please sign in to comment.