# SWE-bench Pro uses pre-built images from DockerHub
FROM jefzda/sweap-images:internetarchive.openlibrary-internetarchive__openlibrary-f3b26c2c0721f8713353fe4b341230332e30008d-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 471ffcf05c6b9ceaf879eb95d3a86ccf8232123b && git clean -fd && git checkout 471ffcf05c6b9ceaf879eb95d3a86ccf8232123b

RUN mkdir -p /logs
