# SWE-bench Pro uses pre-built images from DockerHub
FROM jefzda/sweap-images:internetarchive.openlibrary-internetarchive__openlibrary-62d2243131a9c7e6aee00d1e9c5660fd5b594e89-v0f5aece3601a5b4419f7ccec1dbda

# Reset entrypoint to allow docker-compose command (sleep infinity) to run
ENTRYPOINT []

WORKDIR /app

# Set PYTHONPATH to use /app/lib first so patches are loaded
ENV PYTHONPATH=/app/lib:/app

# Prepare environment (e.g. git reset to base commit)
# Exit immediately if any command fails
RUN set -e && git reset --hard e0e34eb48957fa645e0a3a8e30667252c3bed3fe && git clean -fd && git checkout e0e34eb48957fa645e0a3a8e30667252c3bed3fe

RUN mkdir -p /logs
