From cc8c445a4e282233c61afd9b09254a0408acaf7b Mon Sep 17 00:00:00 2001 From: Chaitanya-chute Date: Fri, 15 May 2026 12:34:59 +0530 Subject: [PATCH] fix: install dev deps before build in Dockerfile.prod --- Dockerfile.prod | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile.prod b/Dockerfile.prod index 6fb1532..fa8a6c9 100644 --- a/Dockerfile.prod +++ b/Dockerfile.prod @@ -7,12 +7,12 @@ WORKDIR /app # Copy package.json COPY package.json . -# Install production dependencies using Yarn -RUN npm install --production +# Install dependencies (dev deps needed for the build step) +RUN npm install # Copy the rest of the application files COPY . . -# Build the frontend using Yarn +# Build the frontend RUN npm run build # Stage 2: Serve the application with Nginx