FROM python:3.12-bookworm

ENV DEBIAN_FRONTEND=noninteractive \
    PYTHONUNBUFFERED=1 \
    PIP_DISABLE_PIP_VERSION_CHECK=1

RUN apt-get update \
    && apt-get install -y --no-install-recommends \
        osmium-tool \
        curl \
        ca-certificates \
        build-essential \
        cmake \
        libexpat1-dev \
        zlib1g-dev \
        libbz2-dev \
    && rm -rf /var/lib/apt/lists/*

# Version actuelle utilisée explicitement pour rendre
# la construction reproductible.
RUN pip install --no-cache-dir "osmium==4.3.1"

WORKDIR /work

CMD ["bash"]
