Dockerfile 923 Bytes
Newer Older
1
FROM jupyter/minimal-notebook
2
3
LABEL Author="Sylvain Soliman <Sylvain.Soliman@inria.fr>"
LABEL Maintainer="Biocham team <biocham@inria.fr>"
4
5
6
7

USER root

ENV LD_LIBRARY_PATH /usr/local/lib/
8
9
ENV PYTHONPATH /home/$NB_USER/biocham/
ENV PATH /home/$NB_USER/biocham:$PATH
10
RUN cd /home/$NB_USER/ && \
11
	wget https://lifeware.gitlabpages.inria.fr/biocham/biocham.zip && \
12
	unzip biocham.zip && rm biocham.zip
SOLIMAN Sylvain's avatar
typo    
SOLIMAN Sylvain committed
13
14
RUN cd biocham && ./install.sh && apt-get autoremove -y && \
	apt-get clean -y && rm -rf /var/lib/apt/lists/*
15
RUN conda uninstall -y --force terminado
16
17
18
19
20
21
RUN chown -R $NB_USER:users /home/$NB_USER/ && chmod -R 755 /home/$NB_USER/.local
# WTF permission error
RUN mv /home/$NB_USER/.local /tmp/ && mv /tmp/.local /home/$NB_USER/
RUN mv /home/$NB_USER/biocham /tmp/ && mv /tmp/biocham /home/$NB_USER/

USER $NB_USER
22
RUN ln -s /home/$NB_USER/biocham/library/examples /home/$NB_USER/work/
23
24

CMD ["start.sh", "biocham", "--notebook"]