2017-10-23 00:04:49 +02:00
|
|
|
# USE ALPINE LINUX
|
2020-03-10 11:59:06 +01:00
|
|
|
FROM alpine:3.11
|
|
|
|
RUN apk --no-cache add \
|
|
|
|
alpine-sdk \
|
|
|
|
bash \
|
|
|
|
ca-certificates \
|
|
|
|
cabal \
|
|
|
|
dpkg \
|
|
|
|
fakeroot \
|
|
|
|
ghc \
|
|
|
|
git \
|
|
|
|
gmp-dev \
|
|
|
|
xz \
|
|
|
|
zlib-dev \
|
|
|
|
zlib-static
|
|
|
|
RUN mkdir -p /usr/src/ && \
|
|
|
|
git clone https://github.com/jgm/pandoc /usr/src/pandoc
|
2017-03-19 16:24:52 +01:00
|
|
|
WORKDIR /usr/src/pandoc
|
2018-11-27 08:15:06 +01:00
|
|
|
CMD cabal --version && \
|
|
|
|
ghc --version && \
|
|
|
|
git pull && \
|
2017-03-19 16:24:52 +01:00
|
|
|
git checkout -b work $TREE && \
|
2018-11-27 08:15:06 +01:00
|
|
|
cabal new-update && \
|
|
|
|
cabal new-clean && \
|
2019-07-12 18:51:24 +02:00
|
|
|
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 && \
|
2018-11-27 08:15:06 +01:00
|
|
|
cabal new-build . pandoc-citeproc && \
|
|
|
|
cabal new-test -j1 . pandoc-citeproc && \
|
|
|
|
for f in $(find dist-newstyle -name 'pandoc*' -type f -perm +400); do cp $f /artifacts/; done && \
|
2017-10-23 00:04:49 +02:00
|
|
|
bash linux/make_deb.sh && \
|
|
|
|
bash linux/make_tarball.sh
|