fix: Add --strictPort option to Vite preview command for better port handling

This commit is contained in:
MayaTheShy
2026-02-16 00:15:34 -05:00
parent 4626ab80ff
commit 172cdac94b

View File

@@ -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"]