From 55ff6addcb10e2a7e72bd80a050430823556595d Mon Sep 17 00:00:00 2001 From: Kunthawat Date: Wed, 11 Mar 2026 14:56:12 +0700 Subject: [PATCH] fix: Simplify serve command - remove broken config - Removed inline JSON config (not working with npx serve) - Using simple flags: -l 80 --no-clipboard --single - --single serves index.html for all routes (SPA fallback) - Fixes 'Could not read configuration' error --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 08b13d474..e6d5203a4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -41,5 +41,5 @@ ENV ASTRO_DB_REMOTE_URL=file:/app/data/consent.db ENV HOST=0.0.0.0 ENV PORT=80 -# Use serve to host static files on port 80 -CMD ["npx", "serve", "dist", "-l", "80", "--config", "{\"directoryListing\": false, \"headers\": [{\"source\": \"**\", \"headers\": [{\"key\": \"Cache-Control\", \"value\": \"public, max-age=31536000, immutable\"}]}]}"] +# Serve static files on port 80 (simple, no config issues) +CMD ["npx", "serve", "dist", "-l", "80", "--no-clipboard", "--single"]