@@ -0,0 +1,22 @@
8+# Install required packages
9+RUN apk add --update ghc cabal git musl-dev zlib-dev ncurses-dev ncurses-static wget
11+# Checkout elm compiler
13+RUN git clone -b $branch https://github.com/elm/compiler.git
15+# Build a statically linked elm binary
17+RUN git checkout $commit
18+RUN rm worker/elm.cabal
20+RUN cabal new-configure --disable-executable-dynamic --ghc-option=-optl=-static --ghc-option=-optl=-pthread
22+RUN strip -s ./dist-newstyle/build/x86_64-linux/ghc-8.4.3/elm-0.19.1/x/elm/build/elm/elm