Files
kennethreitz.org/docker-compose.yml
T
kennethreitz 6ac99803bf Upgrade to astral/uv image and fix docker-compose cache preservation
Updated Dockerfile to use official astral/uv:python3.13-bookworm base image instead of copying uv from separate image, simplifying build process. Fixed docker-compose.yml to preserve pre-built cache directory when mounting local files, ensuring instant startup works in both production and local development environments.

Changes:
- Use astral/uv:python3.13-bookworm as base image
- Remove multi-stage copy of uv binary
- Add cache volume preservation in docker-compose
- Maintain instant startup with pre-built caches in all environments

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-16 16:34:33 -04:00

18 lines
616 B
YAML

version: '3.8'
services:
web:
build: .
ports:
- "8000:8000"
volumes:
- .:/app
# Preserve pre-built caches from Docker image
- /app/.cache
environment:
- FLASK_ENV=development
- DISABLE_ANALYTICS=true
restart: unless-stopped
# Use single worker for local development with markdown file watching
command: ["uv", "run", "gunicorn", "--bind", "0.0.0.0:8000", "--worker-class", "gevent", "--workers", "1", "--worker-connections", "1000", "--timeout", "60", "--reload", "--reload-extra-file", "./data", "--reload-extra-file", "./templates", "engine:app"]