@@ -3,14 +3,15 @@ FROM alpine
3RUN apk update
3RUN apk update
4RUN apk add alpine-sdk git ca-certificates ghc gmp-dev zlib-dev bash dpkg fakeroot
4RUN apk add alpine-sdk git ca-certificates ghc gmp-dev zlib-dev bash dpkg fakeroot
5# GRAB A RECENT BINARY OF STACK
5# GRAB A RECENT BINARY OF STACK
6−# Note that 1.6.5 is the last one with a static binary...
6+# Note that 1.6.5 is the last one with an official static binary...we need
7+# a more recent version, so we use this unofficial one.
8+RUN curl -L https://github.com/nh2/stack/releases/download/v1.6.5/stack-1.7.1-x86_64-unofficial-fully-static-musl > /usr/local/bin/stack
7−RUN curl -L https://github.com/commercialhaskell/stack/releases/download/v1.6.5/stack-1.6.5-linux-x86_64-static.tar.gz | tar xz --wildcards --strip-components=1 -C /usr/local/bin '*/stack'
9+#RUN curl -L https://github.com/commercialhaskell/stack/releases/download/v1.6.5/stack-1.6.5-linux-x86_64-static.tar.gz | tar xz --wildcards --strip-components=1 -C /usr/local/bin '*/stack'
10+RUN chmod +x /usr/local/bin/stack
8ENV PATH="/usr/local/bin:${PATH}"
11ENV PATH="/usr/local/bin:${PATH}"
9RUN ulimit -n 4096
12RUN ulimit -n 4096
10RUN stack config set system-ghc --global true
13RUN stack config set system-ghc --global true
11RUN stack setup --resolver lts-12
14RUN stack setup --resolver lts-12
12−# Upgrade to latest stack...
13−RUN stack install stack
14RUN mkdir -p /usr/src/
15RUN mkdir -p /usr/src/
15WORKDIR /usr/src/
16WORKDIR /usr/src/
16RUN git clone https://github.com/jgm/pandoc
17RUN git clone https://github.com/jgm/pandoc