Dockerfile 824 Bytes
Newer Older
Luis Cosio's avatar
Luis Cosio committed
1
FROM nvidia/cuda:11.2.2-cudnn8-runtime-ubuntu20.04
Shas S's avatar
Shas S committed
2
3


jonabur's avatar
jonabur committed
4
### Install python 3.10 and set it as default python interpreter
Shas S's avatar
Shas S committed
5
6
7
8
9
10
11
12
13
14
15
RUN  apt update &&  apt install software-properties-common -y && \
add-apt-repository ppa:deadsnakes/ppa -y &&  apt update && \
apt install curl -y && \
apt install python3.10 -y && \
update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.10 1 && \
update-alternatives --install /usr/bin/python python /usr/bin/python3.10 1 && \
apt install python3.10-venv python3.10-dev -y && \
curl -Ss https://bootstrap.pypa.io/get-pip.py | python3.10 && \
apt-get clean && rm -rf /var/lib/apt/lists/


jonabur's avatar
jonabur committed
16
### Copy files
Shas S's avatar
Shas S committed
17
18
19
20
21
22
23
24
COPY . /lm-evaluation-harness/

### Set working directory

WORKDIR /lm-evaluation-harness


### Install requirements
jonabur's avatar
jonabur committed
25
RUN pip install --no-cache-dir -e .
Shas S's avatar
Shas S committed
26
27
### Run bash
CMD ["/bin/bash"]