Files
scheduler/Dockerfile
T
jpmschweitzerandClaude Opus 4.5 6f8e6f1c1f
Build and Push / build (release) Failing after 10s
feat: Add version tracking via pyproject.toml
- Add pyproject.toml as single source of truth for version and metadata
- Update config.py to read version from pyproject.toml using tomllib
- FastAPI app now loads title and version dynamically from config
- Health endpoint now includes version in response
- Dockerfile updated to include pyproject.toml

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-14 10:58:28 +01:00

28 lines
639 B
Docker

FROM python:3.12-slim
WORKDIR /app
# Install system dependencies
RUN apt-get update && apt-get install -y \
git ssh postgresql-client curl docker.io \
&& rm -rf /var/lib/apt/lists/*
# Install Python dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy application
COPY src/ ./src/
COPY setup_database.sql .
COPY pyproject.toml .
# Configure git
RUN git config --global user.name "The Librarian" && \
git config --global user.email "librarian@schweitz.net"
ENV PYTHONPATH=/app
EXPOSE 8090
CMD ["uvicorn", "src.main:app", "--host", "0.0.0.0", "--port", "8090", "--workers", "1"]