@@ -16,14 +16,14 @@ RUN git clone https://github.com/jgm/pandoc
1616WORKDIR /usr/src/pandoc
1717RUN stack install --stack-yaml stack.pkg.yaml --only-dependencies \
1818 --flag 'pandoc:embed_data_files' \
19− --ghc-options '-fPIC -fllvm' \
19+ --ghc-options '-O2 -optc-Os -optl=-pthread -optl=-static -fPIC' \
2020 pandoc pandoc-citeproc
2121CMD git pull && \
2222 git checkout -b work $TREE && \
2323 stack install --stack-yaml stack.pkg.yaml \
2424 --flag 'pandoc:static' \
2525 --flag 'pandoc:embed_data_files' \
26− --ghc-options '-O2 -optc-Os -fPIC' \
26+ --ghc-options '-O2 -optc-Os -optl=-pthread -optl=-static -fPIC' \
2727 --local-bin-path /artifacts \
2828 pandoc pandoc-citeproc && \
2929 bash linux/make_deb.sh && \