#!/bin/bash # Start Nginx in the background nginx & # Print the command and arguments for debugging echo "Starting the main application with command: $@" # Execute the default CMD specified in the Dockerfile or passed via the docker run command exec "$@"