forked from carjed/doomsayer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
41 lines (34 loc) · 1.54 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
###############################################################################
# Modified from https://github.com/jupyter/docker-stacks/blob/master/base-notebook/Dockerfile
# Distributed under the terms of the Modified BSD License.
###############################################################################
FROM jupyter/scipy-notebook:c7fb6660d096
LABEL maintainer="Jedidiah Carlson <jed.e.carlson@gmail.com>"
###############################################################################
# install apt dependencies
###############################################################################
USER root
RUN apt-get update && \
apt-get install -y --no-install-recommends \
fonts-dejavu \
tzdata \
gfortran \
gcc && apt-get clean && \
rm -rf /var/lib/apt/lists/*
###############################################################################
# copy gh repo to home dir
###############################################################################
USER ${NB_USER}
COPY . ${HOME}
USER root
RUN chown -R ${NB_UID} ${HOME}
USER ${NB_USER}
###############################################################################
# install dependencies from config file
###############################################################################
RUN conda env update -n root -f env.yml && \
conda clean -tipsy
###############################################################################
# Install R packages
###############################################################################
RUN if [ -f install.r ]; then R --quiet -f install.r; fi