Skip to content

Instantly share code, notes, and snippets.

@nakaji-dayo
Created January 10, 2015 20:24
Show Gist options
  • Save nakaji-dayo/0f677e31a72f99bf676f to your computer and use it in GitHub Desktop.
Save nakaji-dayo/0f677e31a72f99bf676f to your computer and use it in GitHub Desktop.

Revisions

  1. nakaji-dayo created this gist Jan 10, 2015.
    16 changes: 16 additions & 0 deletions Dockerfile
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,16 @@
    FROM bradrydzewski/base

    WORKDIR /home/ubuntu
    USER ubuntu

    MAINTAINER nakaji-dayo <[email protected]>

    RUN cd / && \
    sudo wget https://www.haskell.org/platform/download/2014.2.0.0/haskell-platform-2014.2.0.0-unknown-linux-x86_64.tar.gz && \
    sudo tar -xzvf haskell-platform-2014.2.0.0-unknown-linux-x86_64.tar.gz && \
    sudo rm haskell-platform-2014.2.0.0-unknown-linux-x86_64.tar.gz && \
    sudo /usr/local/haskell/ghc-7.8.3-x86_64/bin/activate-hs && \
    sudo apt-get install gcc libgmp10 && \
    sudo ln -s /usr/lib/x86_64-linux-gnu/libgmp.so.10 /usr/lib/x86_64-linux-gnu/libgmp.so && \
    cabal update && \
    cabal install hunit c2hs