4RUN apk add alpine-sdk git ca-certificates ghc gmp-dev zlib-dev bash dpkg fakeroot
5# GRAB A RECENT BINARY OF STACK
6# Note that 1.6.5 is the last one with an official static binary...we need
7# a more recent version, so we use this unofficial one.
8RUN curl -L https://github.com/nh2/stack/releases/download/v1.6.5/stack-1.7.1-x86_64-unofficial-fully-static-musl > /usr/local/bin/stack
9#RUN curl -L https://github.com/commercialhaskell/stack/releases/download/v1.6.5/stack-1.6.5-linux-x86_64-static.tar.gz | tar xz --wildcards --strip-components=1 -C /usr/local/bin '*/stack'
10RUN chmod +x /usr/local/bin/stack
11ENV PATH="/usr/local/bin:${PATH}"
13RUN stack config set system-ghc --global true
14RUN stack setup --resolver lts-12
17RUN git clone https://github.com/jgm/pandoc
18WORKDIR /usr/src/pandoc
20 git checkout -b work $TREE && \
22 --flag 'pandoc:static' \
23 --flag 'pandoc:embed_data_files' \
24 --flag 'pandoc-citeproc:static' \
25 --flag 'pandoc-citeproc:embed_data_files' \
26 --flag 'hslua:-export-dynamic' \
27 --ghc-options '-O2 -optc-Os -optl=-pthread -optl=-static -fPIC' \
28 --local-bin-path /artifacts \
29 pandoc pandoc-citeproc && \
30 bash linux/make_deb.sh && \
31 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