Initial commit of gitea-ai-webhook bot with CI/CD

This commit is contained in:
Ben
2026-01-01 04:39:29 +00:00
commit c8ea6d7288
6 changed files with 239 additions and 0 deletions

29
Dockerfile Normal file
View File

@@ -0,0 +1,29 @@
FROM python:3.11-slim
# Install system dependencies
# git is required for cloning repos
RUN apt-get update && apt-get install -y \
git \
curl \
&& rm -rf /var/lib/apt/lists/*
# Set working directory
WORKDIR /app
# Install Python dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Install the AI Review tool
# Installing directly from PyPI
RUN pip install --no-cache-dir xai-review
# Copy application code
COPY webhook_server.py .
# Expose port
EXPOSE 3000
# Command to run the server
CMD ["uvicorn", "webhook_server:app", "--host", "0.0.0.0", "--port", "3000"]