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",