-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
30 lines (22 loc) · 1.01 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
# Installs Jupyter Notebook and IRkernel kernel from the current branch
FROM jupyter/notebook
# Retrieve recent R binary from CRAN
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E084DAB9 && \
echo "deb http://cran.rstudio.com/bin/linux/ubuntu trusty/">>/etc/apt/sources.list && \
apt-get update -qq && \
DEBIAN_FRONTEND=noninteractive apt-get install -yq --force-yes --no-install-recommends \
r-base r-base-dev && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
# Set default CRAN repo
RUN echo 'options("repos"="http://cran.rstudio.com")' >> /usr/lib/R/etc/Rprofile.site
# Install IRkernel
RUN Rscript -e "install.packages(c('rzmq','repr','IRkernel','IRdisplay'), repos = c('http://irkernel.github.io/', getOption('repos')))" -e "IRkernel::installspec()"
#Install Debian dependencies
RUN sudo apt-get update
RUN sudo apt-get install -y\
freetype*\
python-matplotlib
#Install python requirements
COPY requirements.txt requirements.txt
RUN pip install -r requirements.txt