A Flask service served by Waitress, ready to deploy on Light Cloud.
- Flask 3
- Served by Waitress rather than
app.run()— the development server prints a warning and is single-threaded, and this image is the one that goes live - Binds
0.0.0.0so the container is reachable - Binds
$PORT, defaulting to 8000
| Method | Endpoint | Description |
|---|---|---|
| GET | / |
Welcome message |
# Install dependencies
pip install -r requirements.txt
# Run the server
python main.pyThe API will be available at http://localhost:8000
Visit console.light-cloud.com and sign up with GitHub or Google.
- Click "New Application" in the dashboard
- Select "Container" as the deployment type
- Choose "Flask" as the framework
- Option A: Fork this repository and connect it via GitHub
- Option B: Push this code to your own GitHub repository and connect it
Light Cloud will auto-detect your settings, but you can verify:
| Setting | Value |
|---|---|
| Port | 8000 |
| Start Command | python main.py |
Click "Deploy" and your API will be live in minutes!
Your API will be available at https://your-app.light-cloud.io
Website • Documentation • Console
Made with ☁️ by Light Cloud
