From 5064ceeca3c478386e99557d66e9cfaa829d5407 Mon Sep 17 00:00:00 2001 From: VaiTon Date: Sun, 30 Apr 2023 01:29:26 +0200 Subject: Use pnpm for frontend --- Dockerfile | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'Dockerfile') diff --git a/Dockerfile b/Dockerfile index 5c0882e..1af5fa0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -24,12 +24,17 @@ RUN export VERSION=$(git describe --tags --abbrev=0) && \ # Build frontend via yarn FROM node:16 as FRONTEND_BUILDER +ENV PNPM_VERSION 8.3.1 +RUN npm install -g pnpm@${PNPM_VERSION} WORKDIR /caronte-frontend -COPY ./frontend/package.json ./frontend/yarn.lock ./ -RUN yarn install --frozen-lockfile + +# pnpm fetch does require only lockfile +COPY ./frontend/pnpm-lock.yaml ./ +RUN pnpm fetch --prod + COPY ./frontend ./ -RUN yarn install && yarn build --production=true +RUN pnpm install && pnpm build # LAST STAGE -- cgit v1.2.3-70-g09d2