From b4a9d7187b17cbb9eeec77183bc4225b6c73d0b0 Mon Sep 17 00:00:00 2001 From: Gronod Date: Thu, 28 May 2026 08:12:10 +0100 Subject: [PATCH] chore: add build script helper, fix client index entrypoint, and copy full public build folder in Dockerfile --- Dockerfile | 2 +- client/index.html | 2 +- package.json | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 96f16c9..72e91d5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -45,7 +45,7 @@ COPY --from=deps /app/node_modules ./node_modules # Copy application source owned by root (read-only at runtime) COPY --chown=root:root server/ ./server/ COPY --chown=root:root public/ ./public/ -COPY --from=client-build --chown=root:root /app/public/app.js ./public/app.js +COPY --from=client-build --chown=root:root /app/public/ ./public/ COPY --chown=root:root package.json ./ # Bundled snakeoil certificate for out-of-the-box TLS (self-signed, localhost only). # Mount your own cert/key over /app/certs/ or set TLS_CERT/TLS_KEY env vars. diff --git a/client/index.html b/client/index.html index 6893248..eb4504a 100644 --- a/client/index.html +++ b/client/index.html @@ -7,6 +7,6 @@
- + diff --git a/package.json b/package.json index 6862fff..fdf4604 100644 --- a/package.json +++ b/package.json @@ -8,6 +8,7 @@ "dev:client": "npm run dev --prefix client", "dev": "concurrently -n 'server,client' -c 'blue,green' 'npm run dev:server' 'npm run dev:client'", "start": "node server/index.js", + "build": "npm run build --prefix client", "install:all": "npm install", "test": "vitest run", "test:watch": "vitest",