Spaces:
Sleeping
Sleeping
File size: 615 Bytes
c98b65e 57ec957 c98b65e 57ec957 c98b65e |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
# 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"] |