2017-10-22 15:04:49 -07:00
|
|
|
# USE ALPINE LINUX
|
2018-04-23 22:43:10 -07:00
|
|
|
FROM alpine
|
|
|
|
RUN apk update
|
2018-11-26 23:15:06 -08:00
|
|
|
RUN apk add alpine-sdk git ca-certificates ghc gmp-dev zlib-dev bash dpkg fakeroot cabal
|
2017-03-19 16:24:52 +01:00
|
|
|
RUN mkdir -p /usr/src/
|
|
|
|
WORKDIR /usr/src/
|
2018-04-23 22:43:10 -07:00
|
|
|
RUN git clone https://github.com/jgm/pandoc
|
2017-03-19 16:24:52 +01:00
|
|
|
WORKDIR /usr/src/pandoc
|
2018-11-26 23:15:06 -08:00
|
|
|
RUN cabal update && \
|
|
|
|
cabal install cabal-install-2.4.0.0 && \
|
|
|
|
cp $HOME/.cabal/bin/cabal /usr/bin/
|
|
|
|
CMD cabal --version && \
|
|
|
|
ghc --version && \
|
|
|
|
git pull && \
|
2017-03-19 16:24:52 +01:00
|
|
|
git checkout -b work $TREE && \
|
2018-11-26 23:15:06 -08:00
|
|
|
cabal new-update && \
|
|
|
|
cabal new-clean && \
|
2019-01-30 22:54:08 -08:00
|
|
|
cabal new-configure --enable-tests -f-export-dynamic -fstatic -fembed_data_files -fbibutils --ghc-options '-optc-Os -optl=-pthread -optl=-static -fPIC' . pandoc-citeproc && \
|
2018-11-26 23:15:06 -08: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-22 15:04:49 -07:00
|
|
|
bash linux/make_deb.sh && \
|
|
|
|
bash linux/make_tarball.sh
|