A minimal Flask app for smoke-testing cloud deployments.
python3 -m venv .venv
.venv/bin/pip install -r requirements.txt
.venv/bin/python app.py
# → http://localhost:8080Set PORT to change the port (most cloud platforms inject this):
PORT=3000 .venv/bin/python app.pycf pushmanifest.yml configures the app (Python buildpack, random route,
HTTP health check on /health); Procfile starts gunicorn on the
platform-assigned $PORT.
docker build -t web-app .
docker run -p 8080:8080 web-appThe container runs gunicorn and respects the PORT env var.
| Path | Purpose |
|---|---|
/ |
HTML page showing hostname, Flask version, uptime |
/health |
JSON health check: {"status": "ok", ...} |