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