4# INSTALL BASIC DEV TOOLS, GHC, GMP & ZLIB
5RUN echo "https://s3-us-west-2.amazonaws.com/alpine-ghc/8.0" >> /etc/apk/repositories
6ADD https://raw.githubusercontent.com/mitchty/alpine-ghc/master/mitch.tishmack%40gmail.com-55881c97.rsa.pub \
7 /etc/apk/keys/mitch.tishmack@gmail.com-55881c97.rsa.pub
9RUN apk add alpine-sdk git ca-certificates ghc gmp-dev zlib-dev bash dpkg fakeroot
10# GRAB A RECENT BINARY OF STACK
11RUN curl -L https://www.stackage.org/stack/linux-x86_64-static | tar xz --wildcards --strip-components=1 -C /usr/local/bin '*/stack'
13ADD https://github.com/lalyos/docker-upx/releases/download/v3.91/upx /usr/local/bin/upx
14RUN chmod 755 /usr/local/bin/upx
16RUN stack config set system-ghc --global true
17RUN stack --resolver lts-9 setup --install-cabal 2.0.1.1
18#RUN mkdir -p /etc/stack
19#RUN echo "build: { split-objs: true }" > /etc/stack/config.yaml
22RUN git clone https://github.com/jgm/pandoc
23WORKDIR /usr/src/pandoc
24RUN stack install --stack-yaml stack.lts9.yaml \
26 --flag 'pandoc:static' \
27 --flag 'pandoc:embed_data_files' \
28 --flag 'pandoc-citeproc:static' \
29 --flag 'pandoc-citeproc:embed_data_files' \
30 --flag 'hslua:-export-dynamic' \
31 --ghc-options '-O2 -optc-Os -optl=-pthread -optl=-static -fPIC' \
33RUN stack install --stack-yaml stack.lts9.yaml \
35 --flag 'pandoc:static' \
36 --flag 'pandoc:embed_data_files' \
37 --flag 'pandoc-citeproc:static' \
38 --flag 'pandoc-citeproc:embed_data_files' \
39 --flag 'hslua:-export-dynamic' \
40 --ghc-options '-O2 -optc-Os -optl=-pthread -optl=-static -fPIC' \
42RUN stack install --stack-yaml stack.lts9.yaml \
44 --flag 'pandoc:static' \
45 --flag 'pandoc:embed_data_files' \
46 --flag 'pandoc-citeproc:static' \
47 --flag 'pandoc-citeproc:embed_data_files' \
48 --flag 'hslua:-export-dynamic' \
49 --ghc-options '-O2 -optc-Os -optl=-pthread -optl=-static -fPIC' \
50 pandoc pandoc-citeproc
52 git checkout -b work $TREE && \
53 stack install --stack-yaml stack.lts9.yaml \
54 --flag 'pandoc:static' \
55 --flag 'pandoc:embed_data_files' \
56 --flag 'pandoc-citeproc:static' \
57 --flag 'pandoc-citeproc:embed_data_files' \
58 --flag 'hslua:-export-dynamic' \
59 --ghc-options '-O2 -optc-Os -optl=-pthread -optl=-static -fPIC' \
60 --local-bin-path /artifacts \
61 pandoc pandoc-citeproc && \
62 bash linux/make_deb.sh && \
63 bash linux/make_tarball.sh
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list