build(web): use pnpm from corepack (#935)

* feat(web): use pnpm packageManager on package.json

* build(web): add frozen-lockfile to Makefile

* build(docker): use the same node version as Docker image

* build(docker): enable corepack

* build(makefile): use --dir instead of cd for pnpm
This commit is contained in:
Fabricio Silva 2023-05-21 16:05:53 +01:00 committed by GitHub
parent 8925266104
commit 1f76aa38f4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 16 additions and 11 deletions

View file

@ -2,8 +2,8 @@
FROM node:18.7.0-alpine3.16 AS web-builder
COPY . ./
WORKDIR /web
RUN npm install -g pnpm && \
pnpm install --frozen-lockfile && \
RUN corepack enable &&
pnpm install --frozen-lockfile &&
pnpm run build
# build app