feat: Add Docker startup script

- Adds a `start-docker.sh` script to simplify the process of
  building and running the application using Docker.
- Provides a convenient way to start the application without
  manual Docker commands.
- Includes an alternative configuration for direct port 80 usage.
This commit is contained in:
Mahmoud Emad 2025-05-11 18:04:46 +03:00
parent 467b098c4c
commit 1651f14152

12
start-docker.sh Executable file
View File

@ -0,0 +1,12 @@
#!/bin/bash
# Build the Docker image
echo "Building Docker image..."
docker build -t svelte-app .
# Run the Docker container on port 80
echo "Starting Docker container on port 80..."
docker run -p 80:3000 svelte-app
# Alternative: Set the container to use port 80 directly
# docker run -p 80:80 -e PORT=80 -e HOST=0.0.0.0 svelte-app