@@ -7,15 +7,32 @@ RUN apk update
77RUN apk add alpine-sdk git ca-certificates ghc cabal stack zlib-dev \
88 dpkg fakeroot sed gawk grep bash linux-headers
99RUN stack update
10−RUN stack upgrade
11−RUN $HOME/.local/bin/stack config set system-ghc --global true
10+RUN stack config set system-ghc --global true
1211#RUN mkdir -p /etc/stack
1312#RUN echo "build: { split-objs: true }" > /etc/stack/config.yaml
1413RUN mkdir -p /usr/src/
1514WORKDIR /usr/src/
16−RUN git clone https://github.com/jgm/pandoc
15+RUN git clone https://github.com/jgm/pandoc
1716WORKDIR /usr/src/pandoc
18−RUN $HOME/.local/bin/stack install --compiler 'ghc-8.0.2' \
17+RUN stack install --stack-yaml stack.lts9.yaml \
18+ --only-dependencies \
19+ --flag 'pandoc:static' \
20+ --flag 'pandoc:embed_data_files' \
21+ --flag 'pandoc-citeproc:static' \
22+ --flag 'pandoc-citeproc:embed_data_files' \
23+ --flag 'hslua:-export-dynamic' \
24+ --ghc-options '-O2 -optc-Os -optl=-pthread -optl=-static -fPIC' \
25+ aeson
26+RUN stack install --stack-yaml stack.lts9.yaml \
27+ --only-dependencies \
28+ --flag 'pandoc:static' \
29+ --flag 'pandoc:embed_data_files' \
30+ --flag 'pandoc-citeproc:static' \
31+ --flag 'pandoc-citeproc:embed_data_files' \
32+ --flag 'hslua:-export-dynamic' \
33+ --ghc-options '-O2 -optc-Os -optl=-pthread -optl=-static -fPIC' \
34+ http-client-tls
35+RUN stack install --stack-yaml stack.lts9.yaml \
1936 --only-dependencies \
2037 --flag 'pandoc:static' \
2138 --flag 'pandoc:embed_data_files' \
@@ -26,7 +43,7 @@ RUN $HOME/.local/bin/stack install --compiler 'ghc-8.0.2' \
2643 pandoc pandoc-citeproc
2744CMD git pull && \
2845 git checkout -b work $TREE && \
29− $HOME/.local/bin/stack install --compiler 'ghc-8.0.2' \
46+ stack install --stack-yaml stack.lts9.yaml \
3047 --flag 'pandoc:static' \
3148 --flag 'pandoc:embed_data_files' \
3249 --flag 'pandoc-citeproc:static' \