Update Dockerfile to use 'node:18-slim' for both frontend and backend stages, optimizing image size.
Publish Docker image / build-and-push (push) Failing after 1m59s

This commit is contained in:
2025-07-07 13:11:21 +07:00
parent d2e6aa1d38
commit e394114269
+2 -2
View File
@@ -1,5 +1,5 @@
# Stage 1: Build React frontend
FROM node:18-alpine as frontend-builder
FROM node:18-slim AS frontend-builder
WORKDIR /app/frontend
# Copy package config and install dependencies
@@ -11,7 +11,7 @@ COPY frontend/ .
RUN npm run build
# Stage 2: Setup Node.js backend and serve everything
FROM node:18-alpine
FROM node:18-slim
WORKDIR /app
# Copy backend package config and install production dependencies