forked from nus-apr/auto-code-rover
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile.scratch
35 lines (26 loc) · 1.15 KB
/
Dockerfile.scratch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
FROM ubuntu:22.04
RUN apt update && apt install -y git wget
WORKDIR /root
RUN wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
RUN bash ./Miniconda3-latest-Linux-x86_64.sh -b -p /root/miniconda3
ENV PATH="/root/miniconda3/bin:${PATH}"
RUN conda init
WORKDIR /opt
RUN git clone https://github.com/yuntongzhang/SWE-bench.git
WORKDIR /opt/SWE-bench
RUN conda env create -f environment.yml
RUN ln -sf /bin/bash /bin/sh
ENV DEBIAN_FRONTEND=noninteractive
RUN apt install -y libffi-dev python3-pytest libfreetype6-dev libqhull-dev
RUN apt install -y pkg-config texlive cm-super dvipng python-tk ffmpeg
RUN apt install -y imagemagick fontconfig
RUN apt install -y ghostscript inkscape graphviz
RUN apt install -y optipng fonts-comic-neue python3-pikepdf
RUN echo ttf-mscorefonts-installer msttcorefonts/accepted-mscorefonts-eula select true | debconf-set-selections
RUN apt install -y ttf-mscorefonts-installer
RUN apt install -y vim build-essential libssl-dev
RUN git config --global user.email [email protected]
RUN git config --global user.name acr
COPY . /opt/auto-code-rover
WORKDIR /opt/auto-code-rover
RUN conda env create -f environment.yml