use package.json pnpm version

This commit is contained in:
Niccolo Borgioli 2024-03-03 01:34:03 +01:00
parent 1a2728d21f
commit 6eb3a59e33
No known key found for this signature in database
GPG Key ID: 4897ACD13A65977C

View File

@ -1,7 +1,10 @@
# FRONTEND
FROM node:18-alpine as client
ENV PNPM_HOME="/pnpm"
ENV PATH="$PNPM_HOME:$PATH"
RUN corepack enable
WORKDIR /tmp
RUN npm install -g pnpm@8
COPY . .
RUN pnpm install --frozen-lockfile
RUN pnpm run build