Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Dockerfile.backend
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
# =============================================================================

# ── Stage 1: install all dependencies ────────────────────────────────────────
FROM node:18-alpine AS deps
FROM node:26-alpine AS deps

# Install OS-level build tools required by native addons (e.g., bcrypt).
RUN apk add --no-cache python3 make g++
Expand All @@ -29,7 +29,7 @@ COPY backend/package.json backend/package-lock.json ./
RUN npm ci --prefer-offline

# ── Stage 2: build ───────────────────────────────────────────────────────────
FROM node:18-alpine AS build
FROM node:26-alpine AS build

WORKDIR /app

Expand All @@ -46,7 +46,7 @@ RUN npm run build
RUN npm prune --production

# ── Stage 3: production runner ───────────────────────────────────────────────
FROM node:18-alpine AS runner
FROM node:26-alpine AS runner

# Security: run as a non-root user.
RUN addgroup --system --gid 1001 nodejs \
Expand Down
6 changes: 3 additions & 3 deletions Dockerfile.frontend
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# =============================================================================

# ── Stage 1: install dependencies ────────────────────────────────────────────
FROM node:18-alpine AS deps
FROM node:26-alpine AS deps

RUN apk add --no-cache libc6-compat

Expand All @@ -29,7 +29,7 @@ COPY frontend/package.json frontend/package-lock.json ./
RUN npm ci --prefer-offline

# ── Stage 2: build ───────────────────────────────────────────────────────────
FROM node:18-alpine AS build
FROM node:26-alpine AS build

WORKDIR /app

Expand All @@ -49,7 +49,7 @@ ENV NEXT_PUBLIC_API_URL=$NEXT_PUBLIC_API_URL
RUN npm run build

# ── Stage 3: production runner ───────────────────────────────────────────────
FROM node:18-alpine AS runner
FROM node:26-alpine AS runner

# Security: run as a non-root user.
RUN addgroup --system --gid 1001 nodejs \
Expand Down
Loading