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
Publish Docker image / build-and-push (push) Failing after 1m59s
This commit is contained in:
+2
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user