Fix serve command options in Dockerfile

- Remove unsupported --host flag from serve command
- The serve package with -l option binds to 0.0.0.0 by default in containers
- Container will now start properly without ArgError
This commit is contained in:
2026-01-18 16:13:00 +01:00
parent ce508d32b5
commit 61408d6362

View File

@@ -23,4 +23,4 @@ RUN npm install -g serve
EXPOSE 3000 EXPOSE 3000
# Start the application using serve directly # Start the application using serve directly
CMD ["serve", "-s", "build", "-l", "3000", "--host", "0.0.0.0"] CMD ["serve", "-s", "build", "-l", "3000"]