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

5
frontend/VERSION.json Normal file
View File

@@ -0,0 +1,5 @@
{
"version": "1.8.5",
"last_build": "2026-04-13-1951",
"codename": "ConfigSync"
}

View File

@@ -48,7 +48,7 @@ import { generateBarcode128, getQRCodeURL } from '@/lib/labels';
import { clsx, type ClassValue } from 'clsx';
import { twMerge } from 'tailwind-merge';
import axios from 'axios';
import versionData from '../../VERSION.json';
import versionData from '../VERSION.json';
interface User {
id: number;