-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnotesdocker.txt
executable file
·48 lines (34 loc) · 1.46 KB
/
notesdocker.txt
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
FROM nvidia/cuda:11.0.3-cudnn8-runtime-ubuntu20.04
# This prevents interactive region dialoge
ENV DEBIAN_FRONTEND=noninteractive
ENV LD_LIBRARY_PATH=/usr/local/nvidia/lib64:$LD_LIBRARY_PATH
ENV PATH=/usr/local/nvidia/bin:$PATH
ENV LC_ALL=C.UTF-8
ENV LANG=C.UTF-8
RUN apt update && apt install -y --no-install-recommends software-properties-common \
libsm6 libxext6 libxrender-dev curl \
&& rm -rf /var/lib/apt/lists/*
RUN echo "**** Installing Python ****" && \
add-apt-repository -y ppa:deadsnakes/ppa && \
apt install -y build-essential python3.6 python3.6-dev python3-pip && \
curl -O https://bootstrap.pypa.io/get-pip.py && \
python3.6 get-pip.py && \
rm -rf /var/lib/apt/lists/*
RUN apt update
RUN apt install -y wget unzip git
RUN apt install -y ffmpeg libglib2.0-0 libgl1-mesa-glx
RUN echo 'alias pip=pip3.6' >> ~/.bashrc
RUN echo 'alias pip3=pip3.6' >> ~/.bashrc
RUN ln -sf /bin/python3.6 /bin/python
RUN ln -sf /bin/python3.6 /bin/python3
RUN pip3 install pip --upgrade
WORKDIR /iqf
COPY ./requirements.txt ./requirements.txt
RUN pip install -r requirements.txt
# Install IQF in the project
RUN pip3 install git+https://gitlab+deploy-token-45:[email protected]/iqf/iquaflow-
# Force a suitable torch version given your hardware
# RUN pip3 install torch==1.7.1+cu110 torchvision==0.8.2+cu110 -f https://download.pytorch.org/whl/torch_stable.html
RUN pip3 install notebook
RUN pip3 install jupyterlab
CMD ["/bin/bash"]