-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile
66 lines (54 loc) · 1.39 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
FROM nvidia/cuda:11.0.3-cudnn8-devel-ubuntu20.04
LABEL maintainer "Maksym Andriushchenko <maksym.andriushchenko@epfl.ch>"
ARG DEBIAN_FRONTEND=noninteractive # needed to prevent some questions during the Docker building phase
# install some necessary tools
RUN apt-get update
RUN apt-get install -y \
cmake \
curl \
htop \
locales \
python3 \
python3-pip \
sudo \
unzip \
vim \
git \
wget \
zsh \
libssl-dev \
libffi-dev \
libmagickwand-dev \
ffmpeg \
libsm6 \
libxext6 \
openssh-server
RUN rm -rf /var/lib/apt/lists/*
RUN mkdir /var/run/sshd
# configure environments
RUN locale-gen en_US.UTF-8
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8
RUN pip3 install --upgrade pip # needed for opencv
RUN pip3 install -U setuptools # may be needed for opencv
RUN pip3 install torch==1.10.0+cu113 torchvision==0.11.1+cu113 torchaudio==0.10.0+cu113 -f https://download.pytorch.org/whl/cu113/torch_stable.html # needed for A100 pods
# python packages
RUN pip3 install --upgrade \
scipy \
numpy \
jupyter notebook \
ipdb \
pyyaml \
easydict \
requests \
matplotlib \
seaborn
RUN export LC_ALL=en_US.UTF-8
# Configure user and group
ENV SHELL=/bin/bash
ENV HOME=/home/$NB_USER
RUN ln -s /usr/bin/python3 /usr/bin/python
# expose the port to ssh
EXPOSE 22
CMD ["/usr/sbin/sshd", "-D"]