IHaskell build (latest: based on lts-12.19) on amd64
2.3K
May not be a minimal size image. Just a made-to-work image from gibiansky's GitHub repo master branch, more specifically,
latest TagFROM amd64/debian:buster-20181112-slim
MAINTAINER Ki Yung Ahn <[email protected]>
# image built on 2018-12-11
RUN apt-get update -y
RUN apt-get install -y python3-pip git libtinfo-dev libzmq3-dev libcairo2-dev libpango1.0-dev libmagic-dev libblas-dev liblapack-dev jupyter jupyter python3-ipywidgets python3-widgetsnbextension curl
RUN curl -sSL https://get.haskellstack.org/ | sh
ENV LANG en_US.UTF-8
ENV NB_USER haskell
ENV NB_UID 1000
ENV HOME /home/${NB_USER}
RUN adduser --disabled-password --gecos "Default user" --uid ${NB_UID} ${NB_USER}
USER ${NB_UID}
WORKDIR ${HOME}
RUN git clone https://github.com/gibiansky/IHaskell
WORKDIR ${HOME}/IHaskell
RUN stack install gtk2hs-buildtools hoogle && stack install && stack exec ihaskell -- install --stack && stack exec hoogle -- generate
ENV PATH $(stack path --local-install-root)/bin:$(stack path --snapshot-install-root)/bin:$(stack path --compiler-bin):/home/${NB_USER}/.local/bin:${PATH}
# CMD ["stack", "exec", "jupyter" "--", "notebook", "--NotebookApp.token=''", "--ip", "0.0.0.0", "notebooks"]
CMD stack exec jupyter -- notebook --NotebookApp.token='' --ip 0.0.0.0 notebooks
Both Display and Widgets work!
Example bash command line usage:
docker run -it -v "`pwd`":/home/haskell/IHaskell/notebooks -p 80:8888 kyagrd/ihaskell
Content type
Image
Digest
Size
1.3 GB
Last updated
almost 8 years ago
docker pull kyagrd/ihaskell