mirror of
https://github.com/kennethreitz/kennethreitz.org.git
synced 2026-06-05 22:50:17 +00:00
6ac99803bf
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>
18 lines
616 B
YAML
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"]
|