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