Build [v1.8.1] (Fix Docker Context)

This commit is contained in:
Daniel Bedeleanu
2026-04-13 19:36:06 +03:00
parent 81b775c9ae
commit 5e648002f0
5 changed files with 13 additions and 15 deletions

View File

@@ -4,15 +4,16 @@ FROM node:20-alpine AS base
FROM base AS deps
RUN apk add --no-cache libc6-compat
WORKDIR /app
# We run this from the frontend folder context
COPY package.json package-lock.json* ./
# Context is root to allow access to VERSION.json
COPY frontend/package.json frontend/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 . .
COPY frontend .
COPY VERSION.json .
# Disable telemetry during build
ENV NEXT_TELEMETRY_DISABLED 1
RUN npm run build