diff options
author | VaiTon | 2023-04-29 23:29:26 +0000 |
---|---|---|
committer | VaiTon | 2023-04-29 23:29:26 +0000 |
commit | 5064ceeca3c478386e99557d66e9cfaa829d5407 (patch) | |
tree | ccbfa3b3f1741de1f68b2617b498cd4a0bdda896 /Dockerfile | |
parent | db851ed4284174c4a759045d89ed6a2a774c0192 (diff) |
Use pnpm for frontend
Diffstat (limited to 'Dockerfile')
-rw-r--r-- | Dockerfile | 11 |
1 files changed, 8 insertions, 3 deletions
@@ -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 |