From 5b073ee32aa32c6cc9cb84f571c7b98d5724420b Mon Sep 17 00:00:00 2001 From: Ayo Date: Sun, 27 Jul 2025 21:23:13 +0200 Subject: [PATCH] chore: skip dev dependencies on prod Dockerfile --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 64974e1f..f70a2d22 100644 --- a/Dockerfile +++ b/Dockerfile @@ -20,13 +20,13 @@ COPY package.json ./ COPY .npmrc ./ COPY pnpm-lock.yaml ./ COPY patches ./patches -RUN pnpm i --frozen-lockfile --ignore-scripts +RUN pnpm i --frozen-lockfile --ignore-scripts --prod # Copy all source files COPY . ./ # Run full install with every postinstall script ( This needs project file ) -RUN pnpm i --frozen-lockfile +RUN pnpm i --frozen-lockfile --prod # Build RUN pnpm build