chore: skip dev dependencies on prod Dockerfile

This commit is contained in:
Ayo Ayco 2025-07-27 21:23:13 +02:00
parent ebf11b5d57
commit 5b073ee32a

View file

@ -20,13 +20,13 @@ COPY package.json ./
COPY .npmrc ./ COPY .npmrc ./
COPY pnpm-lock.yaml ./ COPY pnpm-lock.yaml ./
COPY patches ./patches COPY patches ./patches
RUN pnpm i --frozen-lockfile --ignore-scripts RUN pnpm i --frozen-lockfile --ignore-scripts --prod
# Copy all source files # Copy all source files
COPY . ./ COPY . ./
# Run full install with every postinstall script ( This needs project file ) # Run full install with every postinstall script ( This needs project file )
RUN pnpm i --frozen-lockfile RUN pnpm i --frozen-lockfile --prod
# Build # Build
RUN pnpm build RUN pnpm build