FROM python:3.12-slim

RUN mkdir /app

COPY requirements.txt /app
RUN apt-get update && \
    apt-get install -y build-essential cmake libboost-dev \
                   libexpat1-dev zlib1g-dev libbz2-dev && \
    pip install --no-cache-dir -r /app/requirements.txt

COPY generate_geojson.py /app
COPY action.yml /app

ENTRYPOINT ["python", "/app/generate_geojson.py"]