-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
35 lines (29 loc) · 1.04 KB
/
Dockerfile
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 nvidia/cuda:11.1-cudnn8-devel-ubuntu18.04
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update \
&& apt-get install --no-install-recommends -y \
build-essential \
ca-certificates \
wget \
curl \
unzip \
git \
ssh \
sudo \
vim \
default-jre \
python3.8-dev python3-pip python3-setuptools
RUN ln -s /usr/bin/pip3 /usr/bin/pip
RUN ln -s /usr/bin/python3.8 /usr/bin/python
ENV LANG C.UTF-8
ENV LC_ALL C.UTF-8
RUN python -m pip install --upgrade pip
COPY ./requirements.txt .
RUN pip install -r requirements.txt
COPY ./scripts ./scripts
COPY ./configs ./configs
RUN sh scripts/build.sh
RUN pip install torch==1.9.0+cu111 torchvision==0.10.0+cu111 -f https://download.pytorch.org/whl/torch_stable.html
RUN pip install setuptools==59.5.0
RUN pip install promise==2.3
COPY . ./contrastive-learning-framework