hyfetch/tools/gh_moderator.dockerfile
Azalea Gui 7433df5d74
Some checks are pending
Shellcheck / check (push) Waiting to run
[O] Dockerize AI github moderator
2026-04-20 01:33:44 -04:00

19 lines
405 B
Docker

FROM python:3.12-slim
WORKDIR /app
# Install dependencies
RUN pip install openai pygithub fastapi uvicorn hypy_utils hatchling
# Copy source code
COPY . .
# Set environment variables
ENV PYTHONUNBUFFERED=true
ENV PYTHONPATH=/app
# The app looks for config at ~/.config/gh_moderator.toml
# We will mount it via compose
CMD ["uvicorn", "tools.gh_moderator:app", "--host", "0.0.0.0", "--port", "8000"]