Created
December 3, 2014 20:02
-
-
Save cheecheeo/cdc96b542331524d70df to your computer and use it in GitHub Desktop.
Dockerfile for lpaste
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu | |
RUN sudo apt-get update && sudo apt-get -y install aptitude software-properties-common git | |
RUN sudo aptitude -y install zlib1g-dev libcurl3-dev libpq-dev | |
RUN sudo add-apt-repository -y ppa:hvr/ghc && sudo aptitude update && sudo aptitude -y install cabal-install-1.20 ghc-7.8.3 happy-1.19.4 alex-3.1.3 && export PATH=/opt/alex/3.1.3/bin:/opt/happy/1.19.4/bin:$PATH && export PATH=/opt/ghc/7.8.3/bin:$PATH && cabal-1.20 update && cabal-1.20 -j -O2 install cabal-install | |
RUN export PATH=/opt/alex/3.1.3/bin:/opt/happy/1.19.4/bin:$PATH && export PATH=/opt/ghc/7.8.3/bin:$PATH && export PATH=$HOME/.cabal/bin:$PATH && git clone https://github.com/haskell/cabal.git && cd cabal && cd Cabal && cabal -j -O2 install && cd .. && cd cabal-install && cabal -j install -O2 && cd .. | |
RUN export PATH=/opt/alex/3.1.3/bin:/opt/happy/1.19.4/bin:$PATH && export PATH=/opt/ghc/7.8.3/bin:$PATH && export PATH=$HOME/.cabal/bin:$PATH && git clone https://github.com/chrisdone/lpaste.git && cd lpaste && cabal sandbox init && cabal -v -j -O2 install |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment