git.iko.soy/typeable/pandoc
on 2.7.2 help sign in
23 lines 938 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
8WORKDIR /usr/src/pandoc
9RUN cabal update && \
10 cabal install cabal-install-2.4.0.0 && \
11 cp $HOME/.cabal/bin/cabal /usr/bin/
12CMD cabal --version && \
13 ghc --version && \
14 git pull && \
15 git checkout -b work $TREE && \
16 cabal new-update && \
17 cabal new-clean && \
18 cabal new-configure --enable-tests -f-export-dynamic -fstatic -fembed_data_files -fbibutils --ghc-options '-optc-Os -optl=-pthread -optl=-static -fPIC' . pandoc-citeproc && \
19 cabal new-build . pandoc-citeproc && \
20 cabal new-test -j1 . pandoc-citeproc && \
21 for f in $(find dist-newstyle -name 'pandoc*' -type f -perm +400); do cp $f /artifacts/; done && \
22 bash linux/make_deb.sh && \
23 bash linux/make_tarball.sh