secureweb/start-docker.sh
Mahmoud Emad 1651f14152 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.
2025-05-11 18:04:46 +03:00

12 lines
335 B
Bash
Executable File

#!/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