forked from bigcode-project/bigcode-evaluation-harness
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile-infibench
More file actions
58 lines (52 loc) · 1.94 KB
/
Dockerfile-infibench
File metadata and controls
58 lines (52 loc) · 1.94 KB
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# Use the base Ubuntu image
FROM ubuntu:22.04
# Set non-interactive mode for apt-get
ENV DEBIAN_FRONTEND=noninteractive
# Update package lists and install initial packages
RUN apt-get update && \
apt-get install -y \
git \
python3 \
python3-pip \
python3-setuptools \
curl \
default-jdk \
libboost-all-dev \
mono-complete \
golang-go \
r-base \
libcurl4-openssl-dev \
libfontconfig1-dev \
libxml2-dev \
libharfbuzz-dev \
libfribidi-dev \
libfreetype6-dev \
libpng-dev \
libtiff5-dev \
libjpeg-dev && \
# Install Python packages
pip install -U pip setuptools && \
# Install Node Version Manager (nvm) and Node.js
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.0/install.sh | bash && \
export NVM_DIR="$HOME/.nvm" && \
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" && \
[ -s "$NVM_DIR/bash_completion" ] && . "$NVM_DIR/bash_completion" && \
nvm install 22.7.0 && \
npm install -g jsdom typescript && \
# Install R packages
Rscript -e 'install.packages("assert", repos="http://cran.rstudio.com/")' && \
Rscript -e 'install.packages("stringr", repos="http://cran.rstudio.com/")' && \
Rscript -e 'install.packages("tidyverse", repos="http://cran.rstudio.com/")' && \
Rscript -e 'install.packages("dplyr", repos="http://cran.rstudio.com/")' && \
Rscript -e 'install.packages("data.table", repos="http://cran.rstudio.com/")'
# Clone the repository and set up the environment
RUN git clone https://github.com/infi-coder/infibench-evaluation-harness && \
cd infibench-evaluation-harness && \
pip3 install -r requirements.txt && \
pip3 install matplotlib
# Set environment variables
ENV PATH=/root/.nvm/versions/node/v22.7.0/bin:$PATH
# Set the working directory
WORKDIR /infibench-evaluation-harness
# Command to run bash shell
CMD ["/bin/bash"]