# Use a lightweight Python base image FROM python:3.13-slim AS builder # Install git so we can clone the repo RUN apt-get update && apt-get install -y git --no-install-recommends \ && rm -rf /var/lib/apt/lists/* # Set working directory WORKDIR /app # Clone your GitHub project RUN git clone https://github.com/mohamedabubasith/logs-hook.git . RUN pip install --no-cache-dir -r requirements.txt # ensure writable data dir RUN mkdir -p /data ENV DB_PATH=/data/events.sqlite EXPOSE 8000 ENV CORS_ORIGINS=http://localhost:3000,http://localhost:5173,https://your-frontend-domain.com CMD ["python", "main.py"]