-
-
Notifications
You must be signed in to change notification settings - Fork 26
/
Copy pathDockerfile
24 lines (19 loc) · 1.06 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
FROM andrewosh/binder-base
MAINTAINER SymPy devlopment team <[email protected]>
USER root
# This dockerfile is solely designed to run on binder (mybinder.org)
RUN apt-get update && \
apt-get --quiet --assume-yes install wget git g++ gfortran libgmp-dev binutils-dev bzip2 make sudo && \
apt-get clean
USER main
COPY environment.yml /tmp/environment.yml
RUN sed 's/codegen17/binder/' /tmp/environment.yml > /tmp/binder.yml && \
conda update -y conda && \
conda env create -f /tmp/binder.yml && \
echo "export PATH=/home/main/anaconda2/envs/binder/bin/:/home/main/anaconda3/envs/binder/bin/:$PATH" >> ~/.binder_start && \
/bin/bash -c "source activate binder && jupyter kernelspec install-self --user" && \
mkdir $HOME/.jupyter && \
echo "c.NotebookApp.token = ''" >> $HOME/.jupyter/jupyter_notebook_config.py && \
echo "c.NotebookApp.password=''" >> $HOME/.jupyter/jupyter_notebook_config.py && \
echo "c.NotebookApp.password_required=False" >> $HOME/.jupyter/jupyter_notebook_config.py
ENV CONDA_PREFIX /home/main/anaconda2/envs/binder