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 a static binary...
7RUN 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'
9ADD https://github.com/lalyos/docker-upx/releases/download/v3.91/upx /usr/local/bin/upx
10ENV PATH="/usr/local/bin:${PATH}"
11RUN chmod 755 /usr/local/bin/upx
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