FROM python:3.9.18-slim

WORKDIR /workspace

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

COPY requirements.txt /workspace/requirements.txt
RUN pip install --no-cache-dir -r requirements.txt

COPY . /workspace

ENV PYTHONHASHSEED=42
ENV TF_DETERMINISTIC_OPS=1

CMD ["bash"]
