Build [v1.8.5] (Self-contained Frontend Build)
This commit is contained in:
@@ -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
5
frontend/VERSION.json
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"version": "1.8.5",
|
||||
"last_build": "2026-04-13-1951",
|
||||
"codename": "ConfigSync"
|
||||
}
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user