# Build the image
docker build -t algorithm-visualizer .
# Run locally
docker run -p 8000:8000 algorithm-visualizer
# Or use docker-compose
docker-compose up --build# Install Railway CLI
npm install -g @railway/cli
# Login and deploy
railway login
railway init
railway up
# Railway will automatically detect and build the Dockerfile- Connect your GitHub repo to Render
- Create a new Web Service
- Set Docker as the environment
- Deploy automatically builds from Dockerfile
- Connect your GitHub repo
- Choose Docker as the source
- Set port to 8000
- Deploy
# Install Heroku CLI and login
heroku login
heroku container:login
# Create app
heroku create your-app-name
# Build and push
heroku container:push web
heroku container:release webSet these in your deployment platform:
ENVIRONMENT=production
PORT=8000# Build
docker build -t algo-viz .
# Run
docker run -p 8000:8000 \
-e ENVIRONMENT=production \
algo-viz
# Test
curl http://localhost:8000/health| Platform | Ease | Free Tier | Auto Deploy | Best For |
|---|---|---|---|---|
| Railway | ⭐⭐⭐⭐⭐ | Limited | ✅ | Beginners |
| Render | ⭐⭐⭐⭐ | Good | ✅ | Small projects |
| DigitalOcean | ⭐⭐⭐ | $5/month | ✅ | Production |
| Heroku | ⭐⭐⭐ | Limited | ✅ | Enterprise |
Railway is the easiest for Docker deployments:
npm install -g @railway/cli
railway login
railway init
railway upYour app will be live in minutes!