-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
66 lines (56 loc) · 1.5 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:10.0-cudnn7-devel-ubuntu18.04
LABEL maintainer "Rafael Tibaes <[email protected]>"
ENV TERM linux
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update -y && \
apt-get upgrade -y && \
apt-get install -y --no-install-recommends \
build-essential \
openssh-server \
apt-utils \
locales \
curl \
wget \
git \
less \
vim \
nano \
fish \
iputils-ping \
docker.io \
python3 \
python3-dev \
python3-distutils && \
rm -rf /var/lib/apt/lists/*
RUN echo "en_US.UTF-8 UTF-8" > /etc/locale.gen && locale-gen
ENV LANGUAGE en_US.UTF-8
ENV LANG en_US.UTF-8
ENV LC_ALL en_US.UTF-8
ENV LC_CTYPE en_US.UTF-8
ENV LC_MESSAGES en_US.UTF-8
RUN echo "ttf-mscorefonts-installer msttcorefonts/accepted-mscorefonts-eula select true" | debconf-set-selections
RUN apt-get update -y && \
apt-get install -y --no-install-recommends \
fontconfig \
fonts-dejavu \
fonts-liberation \
ttf-mscorefonts-installer \
fonts-firacode && \
rm -rf /var/lib/apt/lists/* && \
fc-cache -f -v && \
rm -rf ~/.cache/matplotlib
RUN curl https://bootstrap.pypa.io/get-pip.py -o /root/get-pip.py && \
python3 /root/get-pip.py && \
rm /root/get-pip.py
COPY requirements.txt /root/
RUN export AIRFLOW_GPL_UNIDECODE=yes; \
pip install -r /root/requirements.txt
RUN mkdir /playground
WORKDIR /playground
ENV PYTHONPATH /playground
RUN mkdir /root/.ssh/
COPY authorized_keys /root/.ssh/
RUN chmod -R 600 /root/.ssh
CMD bash
EXPOSE 8888
EXPOSE 22