Skip to content

Instantly share code, notes, and snippets.

@rlefevre
Last active April 5, 2019 08:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rlefevre/9d00f1f801c5ac046a8c035fbcc704d4 to your computer and use it in GitHub Desktop.
Save rlefevre/9d00f1f801c5ac046a8c035fbcc704d4 to your computer and use it in GitHub Desktop.
Static elm 0.19.0 linux x64 binary using elm.dmy.fr proxy
FROM alpine:3.7
RUN apk add --update ghc cabal git musl-dev zlib-dev ncurses-dev ncurses-static
WORKDIR /tmp
RUN git clone -b 0.19.0 https://github.com/elm/compiler.git
WORKDIR /tmp/compiler
RUN cabal update
RUN cabal sandbox init
RUN cabal install --only-dependencies
RUN cabal configure --disable-executable-dynamic --ghc-option=-optl=-static --ghc-option=-optl=-pthread
RUN sed -i 's/package.elm-lang.org/elm.dmy.fr/' builder/src/Reporting/Task/Http.hs
RUN cabal build --jobs=1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment