Fix: Downgrade to Express v4 and rebuild deps in Docker
Publish Docker image / build-and-push (push) Successful in 2m7s
Publish Docker image / build-and-push (push) Successful in 2m7s
This commit is contained in:
+3
-3
@@ -15,9 +15,9 @@ RUN npm run build
|
|||||||
FROM node:18-slim
|
FROM node:18-slim
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
# Copy backend package config and install production dependencies
|
# Copy package.json ONLY and install production dependencies from scratch
|
||||||
COPY backend/package.json backend/package-lock.json* ./
|
COPY backend/package.json ./
|
||||||
RUN npm ci --omit=dev
|
RUN npm install --omit=dev
|
||||||
|
|
||||||
# Copy rest of the backend code
|
# Copy rest of the backend code
|
||||||
COPY backend/ .
|
COPY backend/ .
|
||||||
|
|||||||
@@ -19,7 +19,7 @@
|
|||||||
"aws-sdk": "^2.1692.0",
|
"aws-sdk": "^2.1692.0",
|
||||||
"cors": "^2.8.5",
|
"cors": "^2.8.5",
|
||||||
"dotenv": "^17.0.1",
|
"dotenv": "^17.0.1",
|
||||||
"express": "^5.1.0"
|
"express": "^4.19.2"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"nodemon": "^3.1.10"
|
"nodemon": "^3.1.10"
|
||||||
|
|||||||
Reference in New Issue
Block a user