@@ -1,30 +0,0 @@
1−# USE ALPINE LINUX
2−FROM alpine:edge
3−RUN echo "https://s3-us-west-2.amazonaws.com/alpine-ghc/8.0" >> /etc/apk/repositories
4−ADD https://raw.githubusercontent.com/mitchty/alpine-ghc/master/mitch.tishmack%40gmail.com-55881c97.rsa.pub \
5− /etc/apk/keys/mitch.tishmack@gmail.com-55881c97.rsa.pub
6−RUN apk update
7−RUN apk add alpine-sdk git ca-certificates ghc cabal stack zlib-dev \
8− dpkg fakeroot sed gawk grep bash linux-headers
9−RUN stack update
10−RUN stack config set system-ghc --global true
11−RUN mkdir -p /etc/stack
12−RUN echo "build: { split-objs: true }" > /etc/stack/config.yaml
13−RUN mkdir -p /usr/src/
14−WORKDIR /usr/src/
15−RUN git clone https://github.com/jgm/pandoc
16−WORKDIR /usr/src/pandoc
17−RUN stack install --stack-yaml stack.pkg.yaml --only-dependencies \
18− --flag 'pandoc:embed_data_files' \
19− --ghc-options '-O2 -optc-Os -optl=-pthread -optl=-static -fPIC' \
20− pandoc pandoc-citeproc
21−CMD git pull && \
22− git checkout -b work $TREE && \
23− stack install --stack-yaml stack.pkg.yaml \
24− --flag 'pandoc:static' \
25− --flag 'pandoc:embed_data_files' \
26− --ghc-options '-O2 -optc-Os -optl=-pthread -optl=-static -fPIC' \
27− --local-bin-path /artifacts \
28− pandoc pandoc-citeproc && \
29− bash linux/make_deb.sh && \
30− bash linux/make_tarball.sh