# SWE-bench Pro uses pre-built images from DockerHub
FROM jefzda/sweap-images:flipt-io.flipt-flipt-io__flipt-c188284ff0c094a4ee281afebebd849555ebee59

# 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 47499077ce785f0eee0e3940ef6c074e29a664fc && git clean -fd && git checkout 47499077ce785f0eee0e3940ef6c074e29a664fc

RUN mkdir -p /logs
