Commit 70c5505a authored by Greg Weber's avatar Greg Weber

use own haskell-platform build with a proper user

parent 66200654
......@@ -7,30 +7,35 @@
# sudo docker run -rm -i -t IHaskell:dev console
from zsol/haskell-platform-2013.2.0.0:latest
maintainer gregweber
FROM gregweber/haskell-platform-2013.2-deb64
MAINTAINER gregweber
RUN sudo apt-get update
RUN sudo apt-get install -yq git pkg-config libtool automake libncurses5-dev python-dev
RUN curl -L https://github.com/zeromq/zeromq4-x/archive/v4.0.3.tar.gz > v4.0.3.tar.gz && \
RUN sudo apt-get install -yq g++ git pkg-config libtool automake libncurses5-dev python-dev
RUN wget https://github.com/zeromq/zeromq4-x/archive/v4.0.3.tar.gz && \
tar xvfz v4.0.3.tar.gz && \
cd zeromq4-x-4.0.3 && \
./autogen.sh && ./configure && \
make && sudo make install && \
sudo ldconfig
sudo ldconfig && \
cd .. && rm -r zeromq4-x-4.0.3 && rm v4.0.3.tar.gz
RUN cabal update
RUN cabal install happy-1.19.3 cpphs-1.18.3
ENV PATH /home/haskell/.cabal/bin:$PATH
# IHaskell dependencies used by Haskell code
# IHaskell console installer expects curl
# some extensions require C libraries
RUN sudo apt-get install -yq curl libgtk2.0-dev libgtk-3-dev libmagic-dev
# use local modifications of source code
ADD . /home/haskell/IHaskell
# Alternative, use latest master
# RUN git clone https://github.com/gibiansky/IHaskell
RUN cd IHaskell && ./build.sh all
RUN cd ~/IHaskell && ./build.sh all
# Alternative, install everything directly from hackage without using a repo
# RUN cabal install ipython-kernel ihaskell-aeson ihaskell-blaze gtk2hs-buildtools ihaskell-diagrams ihaskell-display ihaskell-magic
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment