Build [v1.8.5] (Self-contained Frontend Build)

This commit is contained in:
Daniel Bedeleanu
2026-04-13 19:50:28 +03:00
parent c874d27d64
commit 55e3cf5042
7 changed files with 15 additions and 17 deletions

View File

@@ -4,16 +4,15 @@ FROM node:20-alpine AS base
FROM base AS deps
RUN apk add --no-cache libc6-compat
WORKDIR /app
# Context is root to allow access to VERSION.json
COPY frontend/package.json frontend/package-lock.json* ./
# We run this from the frontend folder context
COPY package.json package-lock.json* ./
RUN npm ci
# Step 2: Build the source code
FROM base AS builder
WORKDIR /app
COPY --from=deps /app/node_modules ./node_modules
COPY frontend .
COPY VERSION.json .
COPY . .
# Disable telemetry during build
ENV NEXT_TELEMETRY_DISABLED 1
RUN npm run build