Files
kennethreitz.org/Dockerfile
T
kennethreitz a04f2ea95f Fix Dockerfile to copy tuftecms package before install
Copy tuftecms directory before install step since pyproject.toml force-includes templates and static directories.

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-29 14:14:55 -04:00

21 lines
632 B
Docker

FROM astral/uv:python3.13-bookworm
ENV PYTHONUNBUFFERED=1 \
PYTHONDONTWRITEBYTECODE=1 \
UV_SYSTEM_PYTHON=1
WORKDIR /app
# Copy dependency files and required package files
COPY pyproject.toml README.md ./
COPY tuftecms ./tuftecms
# Install dependencies directly without creating a venv (since we're in a container)
RUN uv pip install . --system
# Copy the rest of the application
COPY . .
# Run gunicorn directly (no need for uv run since we installed system-wide)
CMD ["gunicorn", "--bind", "0.0.0.0:8000", "--worker-class", "gevent", "--workers", "1", "--worker-connections", "1000", "--timeout", "60", "engine:app"]