git.iko.soy/typeable/pandoc
on 286b320 help sign in
29 lines 1.2 kB history raw
1# USE ALPINE LINUX
2FROM alpine:edge
3RUN echo "https://s3-us-west-2.amazonaws.com/alpine-ghc/8.0" >> /etc/apk/repositories
4ADD 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
6RUN apk update
7RUN apk add alpine-sdk git ca-certificates ghc cabal stack zlib-dev \
8 dpkg fakeroot sed gawk grep
9RUN stack update
10RUN stack config set system-ghc --global true
11RUN mkdir -p /etc/stack
12RUN echo "build: { split-objs: true }" > /etc/stack/config.yaml
13RUN mkdir -p /usr/src/
14WORKDIR /usr/src/
15RUN git clone https://github.com/jgm/pandoc
16WORKDIR /usr/src/pandoc
17RUN stack install --local-bin-path /usr/bin hsb2hs
18RUN stack install --stack-yaml stack.pkg.yaml --only-dependencies \
19 --flag 'pandoc:embed_data_files' \
20 --test --ghc-options '-O2 -optc-Os -optl-static -fPIC' \
21 pandoc pandoc-citeproc
22CMD git pull && \
23 git checkout -b work $TREE && \
24 stack install --stack-yaml stack.pkg.yaml \
25 --local-bin-path /artifacts --flag 'pandoc:embed_data_files' \
26 --test --ghc-options '-O2 -optc-Os -optl-static -fPIC' \
27 pandoc pandoc-citeproc && \
28 bash linux/make_deb.sh && \
29 bash linux/make_tarball.sh