git.iko.soy/typeable/pandoc
on master help sign in
Docker build: upgrade stack first.
commit40a55728bb5869aab38b1153adddef6db1995c74 authorJohn MacFarlane <jgm@berkeley.edu> dateWed 27 Dec 2017, 20:55 (9 years ago) parentffa3d71
1 file changed+5−3
linux/Dockerfile+5−3
linux/Dockerfile+5−3
@@ -7,14 +7,16 @@ 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 config set system-ghc --global true
10+RUN stack upgrade
11+RUN $HOME/.local/bin/stack config set system-ghc --global true
1112#RUN mkdir -p /etc/stack
1213#RUN echo "build: { split-objs: true }" > /etc/stack/config.yaml
1314RUN mkdir -p /usr/src/
1415WORKDIR /usr/src/
1516RUN git clone https://github.com/jgm/pandoc
1617WORKDIR /usr/src/pandoc
17−RUN stack install --compiler 'ghc-8.0.2' --only-dependencies \
18+RUN $HOME/.local/bin/stack install --compiler 'ghc-8.0.2' \
19+ --only-dependencies \
1820 --flag 'pandoc:static' \
1921 --flag 'pandoc:embed_data_files' \
2022 --flag 'pandoc-citeproc:static' \
@@ -24,7 +26,7 @@ RUN stack install --compiler 'ghc-8.0.2' --only-dependencies \
2426 pandoc pandoc-citeproc
2527CMD git pull && \
2628 git checkout -b work $TREE && \
27− stack install --compiler 'ghc-8.0.2' \
29+ $HOME/.local/bin/stack install --compiler 'ghc-8.0.2' \
2830 --flag 'pandoc:static' \
2931 --flag 'pandoc:embed_data_files' \
3032 --flag 'pandoc-citeproc:static' \