forked from uwdb/Cosette
-
Notifications
You must be signed in to change notification settings - Fork 0
/
FrontendDockerFile
40 lines (31 loc) · 1.46 KB
/
FrontendDockerFile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
FROM konne/cosette
####### Install Dependencies #######################
RUN apt-get -y update
RUN apt-get -y install build-essential curl zlib1g-dev libgmp3-dev libedit2 python libpangocairo-1.0-0 libjpeg62
############## install haskell #####################
RUN curl -O https://downloads.haskell.org/~ghc/8.0.2/ghc-8.0.2-x86_64-deb7-linux.tar.xz
RUN tar xvfJ ghc-8.0.2-x86_64-deb7-linux.tar.xz
RUN cd ghc-8.0.2 && ./configure
RUN cd ghc-8.0.2 && make install
############# install cabal ########################
RUN curl -O http://hackage.haskell.org/package/cabal-install-1.24.0.2/cabal-install-1.24.0.2.tar.gz
RUN tar xvfz cabal-install-1.24.0.2.tar.gz
RUN cd cabal-install-1.24.0.2 && sh ./bootstrap.sh
############# install racket #######################
RUN wget https://mirror.racket-lang.org/installers/6.8/racket-6.8-x86_64-linux.sh
RUN echo -ne "\n\n" | sh racket-6.8-x86_64-linux.sh
############# add to the path ######################
ENV PATH /usr/racket/bin:/root/.cabal/bin/:$PATH
ENV LANG C.UTF-8
############# install rosette ######################
RUN raco pkg install --batch --auto rosette;
############# pull cosette #########################
RUN git clone https://github.com/uwdb/Cosette.git
############# haskel runtime ######################
RUN cd /Cosette/dsl && cabal sandbox init
RUN cabal update
RUN cd /Cosette/dsl && cabal install Parsec
RUN cd /Cosette/dsl && cabal install HUnit
RUN cd /Cosette/dsl && cabal build
# ADD hott /hott
# RUN make -C /hott