Files
scheduler/Dockerfile
T
jpmschweitzerandClaude Opus 4.5 feb7c9e561 fix: Remove setup_database.sql from Dockerfile
Database schema is managed externally - the SQL file was only copied
but never used by the application.

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

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

27 lines
613 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 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"]