FROM python:3.11-slim
WORKDIR /workspace
RUN python -m pip install --no-cache-dir pytest==9.0.3
COPY source /workspace
RUN python -m pip install --no-cache-dir -e .
ENV PYTHONDONTWRITEBYTECODE=1 PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
RUN apt-get update && apt-get install -y --no-install-recommends tmux && rm -rf /var/lib/apt/lists/*
RUN useradd -m -u 1000 learner && chown -R learner:learner /workspace
