-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
32 lines (24 loc) · 822 Bytes
/
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
FROM ubuntu:16.04
LABEL maintainer="Sander van Rijn <[email protected]>"
USER root
# Install default packages
RUN apt-get update -y
RUN apt-get install --fix-missing -y curl python-dev python-virtualenv python-pip
RUN pip install --upgrade pip
RUN apt-get clean
# Add dependency
RUN apt-get install -y graphviz
RUN apt-get install -y texlive-fonts-recommended texlive-fonts-extra dvipng
# Define default user
RUN useradd -m -s /bin/bash main
RUN mkdir /home/main/src
COPY . /home/main/src/
RUN chown -R main:main /home/main
USER main
WORKDIR /home/main/src
ENV PATH "/home/main/.local/bin:${PATH}"
# Install requirements for Python 2
#COPY requirements.txt requirements.txt
RUN pip install --user -r requirements.txt
# TEMP: install jupyter notebook manually
RUN pip install --user jupyter notebook