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

# 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 018129e08535e0a7ec725680a1e8b2c969a832e9 && git clean -fd && git checkout 018129e08535e0a7ec725680a1e8b2c969a832e9

RUN mkdir -p /logs
