git.iko.soy/typeable/pandoc
on master help sign in
Revert use of llvm backend in static linux build.
2637df2John MacFarlane
linux/Dockerfile+2−2
@@ -5,7 +5,7 @@ ADD https://raw.githubusercontent.com/mitchty/alpine-ghc/master/mitch.tishmack%4
5 /etc/apk/keys/mitch.tishmack@gmail.com-55881c97.rsa.pub
5 /etc/apk/keys/mitch.tishmack@gmail.com-55881c97.rsa.pub
6RUN apk update
6RUN apk update
7RUN apk add alpine-sdk git ca-certificates ghc cabal stack zlib-dev \
7RUN apk add alpine-sdk git ca-certificates ghc cabal stack zlib-dev \
8− dpkg fakeroot sed gawk grep llvm linux-headers
8+ dpkg fakeroot sed gawk grep linux-headers
9RUN stack update
9RUN stack update
10RUN stack config set system-ghc --global true
10RUN stack config set system-ghc --global true
11RUN mkdir -p /etc/stack
11RUN mkdir -p /etc/stack
@@ -23,7 +23,7 @@ CMD git pull && \
23 stack install --stack-yaml stack.pkg.yaml \
23 stack install --stack-yaml stack.pkg.yaml \
24 --flag 'pandoc:static' \
24 --flag 'pandoc:static' \
25 --flag 'pandoc:embed_data_files' \
25 --flag 'pandoc:embed_data_files' \
26− --ghc-options '-fPIC -fllvm' \
26+ --ghc-options '-O2 -optc-Os -fPIC' \
27 --local-bin-path /artifacts \
27 --local-bin-path /artifacts \
28 pandoc pandoc-citeproc && \
28 pandoc pandoc-citeproc && \
29 bash linux/make_deb.sh && \
29 bash linux/make_deb.sh && \