| 1 | # for building auto-code-rover:latest |
| 2 | FROM yuntongzhang/swe-bench:latest |
| 3 | |
| 4 | RUN git config --global user.email acr@nus.edu.sg |
| 5 | RUN git config --global user.name acr |
| 6 | |
| 7 | ENV DEBIAN_FRONTEND=noninteractive |
| 8 | RUN apt update && apt install -y vim build-essential libssl-dev |
| 9 | |
| 10 | COPY . /opt/auto-code-rover |
| 11 | |
| 12 | WORKDIR /opt/auto-code-rover/demo_vis/front |
| 13 | RUN sed -i 's/\r$//' /opt/auto-code-rover/demo_vis/run.sh |
| 14 | RUN apt install -y curl |
| 15 | RUN curl -fsSL https://deb.nodesource.com/setup_22.x | bash - |
| 16 | RUN apt-get install nodejs -y |
| 17 | RUN npm i |
| 18 | RUN npm run build |
| 19 | |
| 20 | WORKDIR /opt/auto-code-rover |
| 21 | RUN conda env create -f environment.yml |
| 22 | |
| 23 | EXPOSE 3000 5000 |
| 24 | ENTRYPOINT [ "/bin/bash" ] |