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
1 changed files with 4 additions and 1 deletions

View File

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