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:
@@ -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"]
|
||||||
Reference in New Issue
Block a user