git.iko.soy/typeable/pandoc
on e2bc913 help sign in
30 lines 962 B history raw
1# USE ALPINE LINUX
2FROM alpine:3.11
3RUN apk --no-cache add \
4 alpine-sdk \
5 bash \
6 ca-certificates \
7 cabal \
8 dpkg \
9 fakeroot \
10 ghc \
11 git \
12 gmp-dev \
13 xz \
14 zlib-dev \
15 zlib-static
16RUN mkdir -p /usr/src/ && \
17 git clone https://github.com/jgm/pandoc /usr/src/pandoc
18WORKDIR /usr/src/pandoc
19CMD cabal --version && \
20 ghc --version && \
21 git pull && \
22 git checkout -b work $TREE && \
23 cabal new-update && \
24 cabal new-clean && \
25 cabal new-configure --enable-tests -f-export-dynamic -fstatic -fembed_data_files -fbibutils --ghc-options '-optc-Os -optl=-pthread -optl=-static -fPIC -split-sections' . pandoc-citeproc && \
26 cabal new-build . pandoc-citeproc && \
27 cabal new-test -j1 . pandoc-citeproc && \
28 for f in $(find dist-newstyle -name 'pandoc*' -type f -perm +400); do cp $f /artifacts/; done && \
29 bash linux/make_deb.sh && \
30 bash linux/make_tarball.sh