FROM debian:13
ENV PYTHONUNBUFFERED=1
WORKDIR /app

RUN apt update && \
    apt install -y python3 python3-pip binutils libproj-dev gdal-bin cron && \
    rm -rf /var/lib/apt/lists/*
COPY requirements.txt /app/requirements.txt
RUN pip3 install --break-system-packages --ignore-installed -r requirements.txt
RUN pip3 install --break-system-packages setuptools
# In docker compose the ./preferences:/app volume overrides this copy;
# in CI the image has to carry the code itself.
COPY . /app
#ENTRYPOINT ["./run.sh"]
