- 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.
12 lines
335 B
Bash
Executable File
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 |