From 958210525804ff1fd3a453293f55e942172c6054 Mon Sep 17 00:00:00 2001 From: Denis Shatskiy Date: Mon, 7 Jul 2025 13:37:11 +0700 Subject: [PATCH] Fix: Downgrade to Express v4 and rebuild deps in Docker --- Dockerfile | 6 +++--- backend/package.json | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 218eba5..09a9024 100644 --- a/Dockerfile +++ b/Dockerfile @@ -15,9 +15,9 @@ RUN npm run build FROM node:18-slim WORKDIR /app -# Copy backend package config and install production dependencies -COPY backend/package.json backend/package-lock.json* ./ -RUN npm ci --omit=dev +# Copy package.json ONLY and install production dependencies from scratch +COPY backend/package.json ./ +RUN npm install --omit=dev # Copy rest of the backend code COPY backend/ . diff --git a/backend/package.json b/backend/package.json index 339a83d..7ac239f 100644 --- a/backend/package.json +++ b/backend/package.json @@ -19,7 +19,7 @@ "aws-sdk": "^2.1692.0", "cors": "^2.8.5", "dotenv": "^17.0.1", - "express": "^5.1.0" + "express": "^4.19.2" }, "devDependencies": { "nodemon": "^3.1.10"