git.iko.soy/typeable/pandoc
on master help sign in
linux Dockerfile - use released static build of stack.
commit3fbbdd92fb5e71de3b44005dda5d1c7dfe895c43 authorJohn MacFarlane <jgm@berkeley.edu> dateThu 18 Oct 2018, 10:31 (8 years ago) parentefbb329
1 file changed+2−4
linux/Dockerfile+2−4
linux/Dockerfile+2−4
@@ -3,10 +3,8 @@ FROM alpine
33RUN apk update
44RUN apk add alpine-sdk git ca-certificates ghc gmp-dev zlib-dev bash dpkg fakeroot
55# GRAB A RECENT BINARY OF STACK
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
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'
6+RUN curl -L https://github.com/commercialhaskell/stack/releases/download/v1.9.1/stack-1.9.1-linux-x86_64-static.tar.gz | tar xvf
7+RUN cp stack-1.9.1-linux-x86_64-static/stack /usr/local/bin/stack
108RUN chmod +x /usr/local/bin/stack
119ENV PATH="/usr/local/bin:${PATH}"
1210RUN ulimit -n 4096