| 1 | FROM continuumio/miniconda3:main |
| 2 | |
| 3 | ARG SWE_BENCH_REPO=https://github.com/yuntongzhang/SWE-bench.git |
| 4 | |
| 5 | ARG GIT_NAME=acr |
| 6 | ARG GIT_EMAIL=acr@nus.edu.sg |
| 7 | |
| 8 | ENV DEBIAN_FRONTEND=noninteractive |
| 9 | |
| 10 | RUN apt update && apt install -y \ |
| 11 | git wget vim \ |
| 12 | libffi-dev python3-pytest pkg-config build-essential libssl-dev \ |
| 13 | libfreetype6-dev libqhull-dev \ |
| 14 | texlive cm-super dvipng ffmpeg \ |
| 15 | imagemagick fontconfig ghostscript inkscape graphviz \ |
| 16 | optipng fonts-comic-neue python3-pikepdf |
| 17 | |
| 18 | RUN git config --global user.name ${GIT_NAME} && \ |
| 19 | git config --global user.email ${GIT_EMAIL} |
| 20 | |
| 21 | RUN conda init |
| 22 | |
| 23 | RUN git clone ${SWE_BENCH_REPO} /opt/SWE-bench |
| 24 | WORKDIR /opt/SWE-bench |
| 25 | RUN conda env create -f environment.yml |
| 26 | RUN ln -sf /bin/bash /bin/sh |
| 27 | |
| 28 | COPY . /opt/auto-code-rover |
| 29 | WORKDIR /opt/auto-code-rover |
| 30 | RUN conda env create -f environment.yml |