<reponame>kyagrd/ihaskell-picalc<gh_stars>1-10
# Dockerfile for mybinder.org
#
# Test this Dockerfile:
#
#     docker build -t ihaskell-picalc .
#     docker run --rm -p 8888:8888 --name ihaskell_notebook --env JUPYTER_TOKEN=x ihaskell-picalc:latest
#

FROM crosscompass/ihaskell-notebook:8b7eb58cec8d

USER root
RUN jupyter labextension install @jupyterlab/katex-extension
RUN mkdir /home/$NB_USER/picalc
COPY *.ipynb /home/$NB_USER/picalc/
RUN fix-permissions /home/$NB_USER/picalc

USER $NB_UID
COPY global-project.stack.yaml $STACK_ROOT/global-project/stack.yaml
RUN stack install unbound-generics uglymemo lens tree-view bimap data-partition \
 && stack build $STACK_ARGS ihaskell-graphviz 

ENV JUPYTER_ENABLE_LAB=yes
