Find file
Fetching contributors…
Cannot retrieve contributors at this time
58 lines (45 sloc) 2.11 KB
# quantecon.notebooks Docker Image (for service)
# User: main
# Environments: Python3.5 and Julia0.3
FROM andrewosh/binder-base
MAINTAINER Matthew McKay <>
USER root
#-Update Debian Base-#
RUN apt-get update -y
RUN apt-get install -y --no-install-recommends curl ca-certificates hdf5-tools
#-Install texlive-#
RUN apt-get update -y && apt-get install -yq --no-install-recommends \
texlive-latex-base \
texlive-latex-extra \
texlive-fonts-extra \
texlive-fonts-recommended \
&& apt-get clean
# Julia dependencies
RUN apt-get install -y --no-install-recommends julia libnettle4 && apt-get clean
#-Re-Install Conda for Python3.5 Anaconda Distributions-#
RUN rm -r /home/main/anaconda
USER main
#-NOTE: $HOME/anaconda/envs/python3 is the location anaconda is installed in andrewosh/binder-base
#-If this get's updated then the following instructions will break.
#-TODO: This step can be removed once the base image is upgraded to python=3.5
RUN wget --quiet
RUN bash -b && rm
ENV PATH $HOME/anaconda3/bin:$PATH
RUN /bin/bash -c "ipython kernelspec install-self --user"
RUN conda update conda --yes && conda update anaconda --yes
RUN conda install pymc && conda install seaborn
#-Install Pip Packages
RUN pip install --upgrade pip
RUN pip install quantecon
#-Julia Packages-#
RUN echo "cacert=/etc/ssl/certs/ca-certificates.crt" > ~/.curlrc
RUN julia -e 'Pkg.add("PyCall"); Pkg.checkout("PyCall");"PyCall"); using PyCall'
RUN julia -e 'Pkg.add("IJulia"); using IJulia'
RUN julia -e 'Pkg.add("PyPlot"); Pkg.checkout("PyPlot");"PyPlot"); using PyPlot'
RUN julia -e 'Pkg.add("Distributions"); using Distributions'
RUN julia -e 'Pkg.add("KernelEstimator"); using KernelEstimator'
RUN julia -e 'Pkg.add("QuantEcon"); using QuantEcon'
RUN julia -e 'Pkg.add("Gadfly"); using Gadfly'
RUN julia -e 'Pkg.add("Optim"); using Optim'
RUN julia -e 'Pkg.add("Grid"); using Grid'
RUN julia -e 'Pkg.add("Roots"); using Roots'