From 1651f14152bbb2e239c8b53467614b9c0ce5dcb7 Mon Sep 17 00:00:00 2001 From: Mahmoud Emad Date: Sun, 11 May 2025 18:04:46 +0300 Subject: [PATCH] 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. --- start-docker.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 start-docker.sh diff --git a/start-docker.sh b/start-docker.sh new file mode 100755 index 0000000..90fa0ce --- /dev/null +++ b/start-docker.sh @@ -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 \ No newline at end of file