-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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