#!/bin/bash # Start Nginx in the background nginx & echo "Starting the main application: python server.py" sed -i '/port = find_free_port()/c\ port = 39775' /app/server/server.py # Execute the Python server command exec python /app/server/server.py