-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathDockerfile
38 lines (29 loc) · 1 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
FROM jupyter/scipy-notebook
USER root
# We don't have msprime 0.6.2 in conda-forge yet, so need to
# compile locally. This requires gsl-dev
RUN rm -rf /var/lib/apt/lists/* && apt-get clean
RUN apt-get update && \
apt-get install -y --no-install-recommends \
build-essential cmake libgsl-dev
# Install SLiM
RUN wget http://benhaller.com/slim/SLiM.zip
RUN unzip SLiM.zip
RUN mkdir SLiM/build
RUN cd SLiM/build && cmake .. && make all -j 4
# make install is not currently supported:
# https://github.com/MesserLab/SLiM/issues/29
RUN cp SLiM/build/slim /bin
RUN rm -fR SLiM*
# Install zarr from conda to avoid building numcodecs.
RUN conda install --quiet --yes \
zarr scikit-allel \
&& conda clean -tipsy
# Install ete
RUN conda install --quiet --yes -c etetoolkit ete3 ete_toolchain
RUN pip install tsinfer pyslim
# nbgitpuller to pull in data files, images etc.
RUN pip install nbgitpuller
RUN jupyter serverextension enable --py nbgitpuller --sys-prefix
RUN fix-permissions /home/jovyan
USER $NB_UID