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 useradd -m -u 1001 grader COPY grade.py test_driver.py test_results.py contract.json test.sh /tests/ RUN chmod 755 /tests && chmod 644 /tests/*