From 172cdac94b5717dbe449e542c4d51ec095f2bae7 Mon Sep 17 00:00:00 2001 From: MayaTheShy Date: Mon, 16 Feb 2026 00:15:34 -0500 Subject: [PATCH] fix: Add --strictPort option to Vite preview command for better port handling --- client/Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/Dockerfile b/client/Dockerfile index 3ce1f57..684170f 100644 --- a/client/Dockerfile +++ b/client/Dockerfile @@ -18,5 +18,5 @@ RUN npm run build # Expose port for Vite preview server EXPOSE 3000 -# Serve built files with Vite preview -CMD ["npm", "run", "preview", "--", "--host", "0.0.0.0", "--port", "3000"] +# Serve built files with Vite preview (allow all hosts) +CMD ["npm", "run", "preview", "--", "--host", "0.0.0.0", "--port", "3000", "--strictPort"]