git.iko.soy/typeable/pandoc
on 63c96f8 help sign in
18 lines 784 B history raw
1# USE ALPINE LINUX
2FROM alpine:edge
3RUN apk update
4# INSTALL BASIC DEV TOOLS, GHC, GMP & ZLIB
5RUN echo "https://s3-us-west-2.amazonaws.com/alpine-ghc/8.0" >> /etc/apk/repositories
6ADD https://raw.githubusercontent.com/mitchty/alpine-ghc/master/mitch.tishmack%40gmail.com-55881c97.rsa.pub \
7 /etc/apk/keys/mitch.tishmack@gmail.com-55881c97.rsa.pub
8RUN apk update
9RUN apk add alpine-sdk git ca-certificates ghc cabal stack zlib-dev
10RUN stack update
11RUN stack config set system-ghc --global true
12ADD ./ /usr/src/
13WORKDIR /usr/src/
14RUN git clone https://github.com/jgm/pandoc
15WORKDIR /usr/src/pandoc
16CMD git pull
17CMD stack install --local-bin-path /usr/bin hsb2hs
18CMD stack install --local-bin-path /artifacts --flag 'pandoc:embed_data_files' --test --ghc-options '-optl-static -fPIC'