FROM python:3.12-slim ENV PYTHONDONTWRITEBYTECODE=1 PYTHONUNBUFFERED=1 ENV PYTHONPATH=/app WORKDIR / COPY app/services/database/pyproject.toml ./ COPY app/services/database/README.md ./ COPY app/core ./app/core COPY app/services/common/ ./app/services/common/ COPY app/services/database/ ./app/services/database/ RUN pip install --upgrade pip && pip install --no-cache-dir . RUN mkdir -p /app/data CMD ["python", "-m", "app.services.database.main"]