fix: Add --strictPort option to Vite preview command for better port handling
This commit is contained in:
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user