FROM codeflash/codeflash-rl-env:latest

# Checkout to pre-optimization state
RUN cd /workspace/inference && git checkout a91e477b2c94b07c4f67f664b68dbe9b45febdb8

# Re-install to get correct dependency versions for this commit
RUN pip install --no-cache-dir -e . 2>/dev/null || true
RUN pip install --no-cache-dir codeflash==0.20.5

WORKDIR /workspace/inference
