# Python Destination Container
FROM python:3.11-slim

RUN apt-get update && apt-get install -y \
    build-essential \
    && rm -rf /var/lib/apt/lists/*

RUN pip install --no-cache-dir uv

WORKDIR /app

COPY destination/pyproject.toml .
COPY destination/src/ src/
COPY VERSION.txt /VERSION.txt

# Install package and its dependencies
RUN uv pip install --system .

ENV PYTHONUNBUFFERED=1

CMD ["shmem-reader"]
