-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile
42 lines (37 loc) · 1.21 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
# Pull base image.
FROM ubuntu:bionic
# Install Base
RUN apt-get update \
&& apt-get -y upgrade \
&& apt-get install -y --no-install-recommends \
build-essential \
ca-certificates \
curl git htop man unzip vim wget \
python3 python3-dev python3-pip python3-setuptools \
&& printf '#!/usr/bin/env bash\npython3 -m pip "$@"' > /usr/bin/pip3 \
&& chmod +x /usr/bin/pip3 \
&& ln -s /usr/bin/pip3 /usr/bin/pip \
&& ln -s /usr/bin/python3 /usr/bin/python \
&& rm -rf /var/lib/apt/lists/*
# Install Packages
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
sqlite3 libsqlite3-dev \
python3-scipy \
freetype* pkg-config \
&& pip install --no-cache-dir \
requests six pytz arrow PyPDF2 virtualenv \
networkx html5lib decorator \
jupyter pandas numpy==1.16.2 matplotlib scipy \
scikit-learn seaborn scikit-image \
fpdf datascience ipywidgets \
&& pip install --no-cache-dir okpy \
&& pip install --no-cache-dir --upgrade okpy \
&& rm -rf /var/lib/apt/lists/*
# Set environment variables.
ENV HOME /root
# TODO: Run as non root user
# Define working directory.
WORKDIR /root
# Define default command.
CMD ["bash"]