Once you've generated a Dockerfile with Revali Docker, you're ready to deploy your application to production. This guide covers deployment strategies, platform choices, and best practices for running Revali applications in containers.
Deployment Process#
Deploying a Revali Docker application typically follows these steps:
- Generate the Dockerfile - Run
revali buildto create your Dockerfile - Build the Docker Image - Compile your application into a container image
- Test Locally - Verify the container works on your machine
- Push to Registry - Upload your image to a container registry
- Deploy to Platform - Deploy the image to your hosting provider
- Configure & Monitor - Set up environment variables, scaling, and monitoring
Choosing a Deployment Platform#
Different platforms offer different trade-offs between simplicity, control, and cost. Here's a comparison:
| Platform | Best For | Ease of Use | Pricing | Free Tier |
|---|---|---|---|---|
| Fly.io | Global deployment, low latency | ⭐⭐⭐⭐⭐ | Pay-as-you-go | Yes |
| Railway | Quick deployment, hobby projects | ⭐⭐⭐⭐⭐ | Usage-based | Yes |
| Render | Simple setup, managed services | ⭐⭐⭐⭐ | Fixed pricing | Yes |
| DigitalOcean App Platform | Balanced control & simplicity | ⭐⭐⭐⭐ | Fixed pricing | No |
| Heroku | Beginner-friendly, add-ons | ⭐⭐⭐⭐ | Dyno-based | No |
What's Next?#
- Fly.io Deployment Guide - Detailed Fly.io setup
- Revali Docker Overview - Learn more about Docker generation
Ready to deploy? Choose a platform above and follow their quick start guide!