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