FROM node:18
RUN npm install -g pnpm
WORKDIR /app
# pnpm fetch richiede solo il file lock
COPY pnpm-lock.yaml ./
RUN pnpm fetch --prod
COPY . ./
RUN pnpm install -r --offline --prod
CMD ["pnpm", "run", "build"]