From 6e807499ae6cac8d73d316e771542d4d88358ba1 Mon Sep 17 00:00:00 2001 From: Zohaib Irshad Date: Mon, 9 Feb 2026 18:41:21 +0500 Subject: [PATCH] copying package-lock.json in docker file and disabling css code splitting and sourcemaps for determinism --- console/Makefile | 2 +- console/docker/Dockerfile | 4 ++-- console/vite.config.ts | 4 ++++ 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/console/Makefile b/console/Makefile index 7373ad32..4c2ace25 100644 --- a/console/Makefile +++ b/console/Makefile @@ -10,7 +10,7 @@ build-docker: .PHONY: install install: - npm install + npm ci .PHONY: lint lint: format-check diff --git a/console/docker/Dockerfile b/console/docker/Dockerfile index 4cf896a1..75229f95 100644 --- a/console/docker/Dockerfile +++ b/console/docker/Dockerfile @@ -28,10 +28,10 @@ ENV VITE_POLARIS_REALM_HEADER_NAME=Polaris-Realm WORKDIR /app # Copy package files -COPY package.json ./ +COPY package.json package-lock.json ./ # Install dependencies -RUN npm install +RUN npm ci # Copy source code (excluding docker directory via .dockerignore) COPY . . diff --git a/console/vite.config.ts b/console/vite.config.ts index d9782d24..6ee011f6 100644 --- a/console/vite.config.ts +++ b/console/vite.config.ts @@ -29,4 +29,8 @@ export default defineConfig({ "@": path.resolve(__dirname, "./src"), }, }, + build: { + cssCodeSplit: false, + sourcemap: false, + }, })