Samples / data /cyber /environments /swe /Dockerfile
TidorP's picture
Publish seven selected GDPVal, STEM and code samples with a unified Docker runner
700c7f4 verified
Raw History Blame Contribute Delete
1.16 kB
# PDL-Bench :: SWE environment
# For the 20 executable repository tasks in software_delivery and cyber_operations.
# These are graded by running a held-out pytest suite against the agent's patch.
#
# docker build -t pdl-bench/swe:1.0.0 environments/swe
#
# Python 3.12 is a floor, not a preference: one task's public suite uses a PEP 701
# f-string (backslash inside the expression) that does not parse on 3.11.
FROM python:3.12-slim@sha256:a6e34c598f2467ed0e9a8d349809fcd8b5c603269512df273a0bb1784edc11b1
# git and patch are needed to apply an agent's diff (and the reference gold.diff);
# python:3.12-slim ships neither.
RUN apt-get update \
&& apt-get install -y --no-install-recommends git patch \
&& rm -rf /var/lib/apt/lists/*
# Task repositories are standard-library only; pytest is the sole runtime dependency.
RUN pip install --no-cache-dir "pytest==9.1.1"
# /workspace -> unpacked repository.zip (the agent edits src/** here)
# /hidden-tests -> unpacked hidden_tests.zip, mounted read-only at grade time
WORKDIR /workspace
RUN mkdir -p /hidden-tests
ENV PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1 \
PYTHONHASHSEED=0
CMD ["bash"]