Last active
October 29, 2019 14:22
-
-
Save rlefevre/e3db32d9915fb3d614bd0695de0a473c to your computer and use it in GitHub Desktop.
Revisions
-
rlefevre renamed this gist
Jul 11, 2019 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
rlefevre revised this gist
Mar 19, 2019 . No changes.There are no files selected for viewing
-
rlefevre revised this gist
Mar 19, 2019 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,4 @@ # Elm 0.19.0 Linux x64 statically linked binary This document describes how to build a statically linked binary of Elm 0.19.0 for Linux x64 using [docker](https://www.docker.com/). The binary is built using [Alpine Linux](https://alpinelinux.org/) in order to easily link it statically to [musl libc](https://www.musl-libc.org/). This is how the official Elm 0.19.0 Linux binary was built. -
rlefevre revised this gist
Mar 19, 2019 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -5,7 +5,7 @@ This document describes how to build a statically linked binary of Elm 0.19.0 fo ## Why? #### Why build a statically linked binary? Elm is currently distributed using `npm`. For Linux x64 (but this applies to any architecture), this requires to have a single x64 binary that works on all Linux x64 distributions. This is considerably easier to achieve by building a statically linked binary that will only depend on the Linux kernel ABI and System Call Interface but not on userpace libraries (see [here](https://gist.github.com/rlefevre/e833f6fbd485f46a1352bce9b239932e) for a compatibility survey of a dynamically built executable). #### Why use docker? -
rlefevre revised this gist
Mar 19, 2019 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,6 +1,6 @@ # Elm Linux x64 statically linked binary This document describes how to build a statically linked binary of Elm 0.19.0 for Linux x64 using [docker](https://www.docker.com/). The binary is built using [Alpine Linux](https://alpinelinux.org/) in order to easily link it statically to [musl libc](https://www.musl-libc.org/). This is how the official Elm 0.19.0 Linux binary was built. ## Why? -
rlefevre revised this gist
Mar 19, 2019 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,6 +1,6 @@ # Elm Linux x64 statically linked binary This document describes how to build a statically linked binary of Elm 0.19.0 for Linux x64 using [docker](https://www.docker.com/). The binary is built using [Alpine Linux](https://alpinelinux.org/) in order to easily link it statically to [musl libc](https://www.musl-libc.org/). This is how the official Elm 0.19.0 Linux binary is built. ## Why? -
rlefevre revised this gist
Mar 19, 2019 . 1 changed file with 4 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,6 +1,6 @@ # Elm Linux x64 statically linked binary This document describes how to build a statically linked binary of Elm 0.19.0 for Linux x64 using [docker](https://www.docker.com/). The binary is built using [Alpine Linux](https://alpinelinux.org/) in order to easily link it statically to [musl libc](https://www.musl-libc.org/). This is how the official Linux binary is built. ## Why? @@ -51,8 +51,9 @@ Maybe one day the docker build script could be included in elm sources but for n Create an empty directory named for example `elm-docker` (naming is not important) and add a `Dockerfile` file in it (naming is important) with the following content: ``` # We use Alpine 3.7 that includes ghc 8.0.2 as at the time of writing, the last # Alpine version 3.8 includes ghc 8.4 that is not yet supported by the `language-glsl` # haskell library used by elm. FROM alpine:3.7 # Install required packages -
rlefevre revised this gist
Dec 10, 2018 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -58,7 +58,7 @@ FROM alpine:3.7 # Install required packages RUN apk add --update ghc cabal git musl-dev zlib-dev ncurses-dev ncurses-static # Checkout elm compiler (using 0.19.0 tag) WORKDIR /tmp RUN git clone -b 0.19.0 https://github.com/elm/compiler.git @@ -72,7 +72,7 @@ RUN cabal configure --disable-executable-dynamic --ghc-option=-optl=-static --gh RUN cabal build --jobs=1 ``` Take note of the comment above the git command. You can change some git options there if you want to use another elm tag/commit/branch. #### 3. Build the docker image including the statically linked elm binary -
rlefevre revised this gist
Dec 10, 2018 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,6 +1,6 @@ # Elm Linux x64 statically linked binary This document describes how to build a statically linked binary of Elm 0.19.0 for Linux x64 using [docker](https://www.docker.com/). The binary is built using [Alpine Linux](https://alpinelinux.org/) in order to easily link it statically to [musl libc](https://www.musl-libc.org/). ## Why? -
rlefevre revised this gist
Dec 10, 2018 . 1 changed file with 2 additions and 6 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,10 +1,6 @@ # Elm Linux x64 statically linked binary This document describes how to build a statically linked binary of elm 0.19.0 for Linux x64 using [docker](https://www.docker.com/). The binary is built using [Alpine Linux](https://alpinelinux.org/) in order to easily link it statically to [musl libc](https://www.musl-libc.org/). ## Why? @@ -64,7 +60,7 @@ RUN apk add --update ghc cabal git musl-dev zlib-dev ncurses-dev ncurses-static # Checkout elm compiler (you can change git options to retrieve a specific tag or branch) WORKDIR /tmp RUN git clone -b 0.19.0 https://github.com/elm/compiler.git # Build a statically linked elm binary WORKDIR /tmp/compiler -
rlefevre revised this gist
Dec 10, 2018 . 1 changed file with 0 additions and 4 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,7 +1,3 @@ # Elm Linux x64 statically linked binary This document describes how to build a statically linked binary of elm 0.19 alpha (HEAD of `master` by default) for Linux x64 using [docker](https://www.docker.com/). The binary is built using [Alpine Linux](https://alpinelinux.org/) in order to easily link it statically to [musl libc](https://www.musl-libc.org/). -
rlefevre revised this gist
Aug 21, 2018 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -88,7 +88,7 @@ In the directory containing the `Dockerfile`, run: ``` $ docker build -t elm . ``` The `-t elm` option is used to name the docker image `"elm"`, which will be useful to refer to it later. The steps automatically executed are: - fetch and run the Alpine Linux image inside a container -
rlefevre revised this gist
Aug 20, 2018 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -13,7 +13,7 @@ If you just want test the resulting statically linked binary, you can [download ## Why? #### Why build a statically linked binary? Elm is currently distributed using `npm`. For Linux x64 (but this applies to any architecture), this requires to have a single x64 binary that works on all Linux x64 distributions. This is considerably easier to achieve by building a statically linked binary that will only depend on the Linux kernel ABI and System Call Interface but not on userpace libraries. #### Why use docker? -
rlefevre revised this gist
Aug 17, 2018 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -19,7 +19,7 @@ Elm is currently distributed using `npm`. For Linux x64 (but this applies to any Docker allows to automate and reproduce the build on any system that supports docker without creating some dependencies with the host system (in our case mainly the C libraries needed by elm, and particularly the libc). This lowers the requirements to rebuild elm, improves the builds reliability and allows to manage the whole build procedure in a version control system. #### Why use Alpine Linux and musl libc? Glibc is not really suitable for static linking as it uses some dynamically loaded name resolution libraries that complicate static linking considerably (see this [FAQ](https://sourceware.org/glibc/wiki/FAQ#Even_statically_linked_programs_need_some_shared_libraries_which_is_not_acceptable_for_me.__What_can_I_do.3F) and [NSS documentation](http://www.gnu.org/software/libc/manual/html_node/Name-Service-Switch.html) for more information). Alpine Linux is a very small Linux distribution particularly suitable for Continuous Integration images that uses the [musl libc](https://www.musl-libc.org/) instead of glibc. The musl libc, defined on its homepage as "lightweight, fast, simple, free, and strives to be correct in the sense of standards-conformance and safe", is a nice alternative to glibc, particularly for static linking. -
rlefevre revised this gist
Aug 17, 2018 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -4,7 +4,7 @@ # Elm Linux x64 statically linked binary This document describes how to build a statically linked binary of elm 0.19 alpha (HEAD of `master` by default) for Linux x64 using [docker](https://www.docker.com/). The binary is built using [Alpine Linux](https://alpinelinux.org/) in order to easily link it statically to [musl libc](https://www.musl-libc.org/). ## Download -
rlefevre revised this gist
Aug 15, 2018 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -8,7 +8,7 @@ This document describes how to build a statically linked binary of elm 0.19 alph ## Download If you just want test the resulting statically linked binary, you can [download it here](https://drive.google.com/uc?export=download&id=1j-rvPqkUjLt4bnikEKs3oatjlXQKhT1r) (based on August 9 [commit 2a39658](https://github.com/elm/compiler/commit/2a396586c7a01be3ad053c6b018f62df830d689b) from elm compiler master branch). ## Why? -
rlefevre revised this gist
Aug 15, 2018 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -8,7 +8,7 @@ This document describes how to build a statically linked binary of elm 0.19 alph ## Download If you just want test the resulting statically linked binary, you can [download it here](https://drive.google.com/uc?export=download&id=1j-rvPqkUjLt4bnikEKs3oatjlXQKhT1r') (based on August 9 [commit 2a39658](https://github.com/elm/compiler/commit/2a396586c7a01be3ad053c6b018f62df830d689b) from elm compiler master branch). ## Why? -
rlefevre revised this gist
Aug 15, 2018 . 1 changed file with 1 addition and 2 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -64,8 +64,7 @@ Create an empty directory named for example `elm-docker` (naming is not importan FROM alpine:3.7 # Install required packages RUN apk add --update ghc cabal git musl-dev zlib-dev ncurses-dev ncurses-static # Checkout elm compiler (you can change git options to retrieve a specific tag or branch) WORKDIR /tmp -
rlefevre revised this gist
Aug 15, 2018 . 1 changed file with 2 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -6,6 +6,8 @@ This document describes how to build a statically linked binary of elm 0.19 alpha (HEAD of `master` by default) for Linux x64 using [docker](https://www.docker.com/). The binary is built using [Alpine Linux](https://alpinelinux.org/) and consequently statically linked to [musl libc](https://www.musl-libc.org/). ## Download If you just want test the resulting statically linked binary, you can [download it here](https://drive.google.com/file/d/1j-rvPqkUjLt4bnikEKs3oatjlXQKhT1r/view?usp=sharing) (based on August 9 [commit 2a39658](https://github.com/elm/compiler/commit/2a396586c7a01be3ad053c6b018f62df830d689b) from elm compiler master branch). ## Why? -
rlefevre revised this gist
Aug 15, 2018 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -6,7 +6,7 @@ This document describes how to build a statically linked binary of elm 0.19 alpha (HEAD of `master` by default) for Linux x64 using [docker](https://www.docker.com/). The binary is built using [Alpine Linux](https://alpinelinux.org/) and consequently statically linked to [musl libc](https://www.musl-libc.org/). If you just want test the resulting statically linked binary, you can [download it here](https://drive.google.com/file/d/1j-rvPqkUjLt4bnikEKs3oatjlXQKhT1r/view?usp=sharing) (based on August 9 [commit 2a39658](https://github.com/elm/compiler/commit/2a396586c7a01be3ad053c6b018f62df830d689b) from elm compiler master branch). ## Why? -
rlefevre revised this gist
Aug 15, 2018 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -6,7 +6,7 @@ This document describes how to build a statically linked binary of elm 0.19 alpha (HEAD of `master` by default) for Linux x64 using [docker](https://www.docker.com/). The binary is built using [Alpine Linux](https://alpinelinux.org/) and consequently statically linked to [musl libc](https://www.musl-libc.org/). If you just want test the resulting binary, you can [download it here](https://drive.google.com/file/d/1j-rvPqkUjLt4bnikEKs3oatjlXQKhT1r/view?usp=sharing) (based on August 9 [commit 2a39658](https://github.com/elm/compiler/commit/2a396586c7a01be3ad053c6b018f62df830d689b) from elm compiler master branch). ## Why? -
rlefevre revised this gist
Aug 15, 2018 . 1 changed file with 2 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -6,6 +6,8 @@ This document describes how to build a statically linked binary of elm 0.19 alpha (HEAD of `master` by default) for Linux x64 using [docker](https://www.docker.com/). The binary is built using [Alpine Linux](https://alpinelinux.org/) and consequently statically linked to [musl libc](https://www.musl-libc.org/). If you just want test the resulting binary, you can [download it here](https://drive.google.com/file/d/1j-rvPqkUjLt4bnikEKs3oatjlXQKhT1r/view?usp=sharing) (based on commit 2a39658 from elm compiler master branch from August 9). ## Why? #### Why build a statically linked binary? -
rlefevre revised this gist
Aug 15, 2018 . 1 changed file with 1 addition and 0 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -60,6 +60,7 @@ Create an empty directory named for example `elm-docker` (naming is not importan FROM alpine:3.7 # Install required packages RUN apk update RUN apk add ghc cabal git musl-dev zlib-dev ncurses-dev ncurses-static # Checkout elm compiler (you can change git options to retrieve a specific tag or branch) -
rlefevre revised this gist
Aug 14, 2018 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -9,7 +9,7 @@ This document describes how to build a statically linked binary of elm 0.19 alph ## Why? #### Why build a statically linked binary? Elm is currently distributed using `npm`. For Linux x64 (but this applies to any architecture), this requires to have a single x64 binary that works on all Linux x64 distributions. This is considerably easier to achieve by building a statically linked binary that will only depend on the Linux kernel ABI and not on userpace libraries. #### Why use docker? -
rlefevre revised this gist
Aug 14, 2018 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -13,7 +13,7 @@ Elm is currently distributed using `npm`. For Linux x64 (but this applies to any #### Why use docker? Docker allows to automate and reproduce the build on any system that supports docker without creating some dependencies with the host system (in our case mainly the C libraries needed by elm, and particularly the libc). This lowers the requirements to rebuild elm, improves the builds reliability and allows to manage the whole build procedure in a version control system. #### Why use Alpine Linux? Glibc is not really suitable for static linking as it uses some dynamically loaded name resolution libraries that complicate static linking considerably (see this [FAQ](https://sourceware.org/glibc/wiki/FAQ#Even_statically_linked_programs_need_some_shared_libraries_which_is_not_acceptable_for_me.__What_can_I_do.3F) and [NSS documentation](http://www.gnu.org/software/libc/manual/html_node/Name-Service-Switch.html) for more information). -
rlefevre revised this gist
Aug 14, 2018 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -13,7 +13,7 @@ Elm is currently distributed using `npm`. For Linux x64 (but this applies to any #### Why use docker? Docker allows to automate and reproduce the build on any system that supports docker without creating some dependencies with the host system (in our case the C libraries needed by elm, particularly the libc). This lowers the requirements to rebuild elm, improves the builds reliability and allows to manage the whole build procedure in a version control system. #### Why use Alpine Linux? Glibc is not really suitable for static linking as it uses some dynamically loaded name resolution libraries that complicate static linking considerably (see this [FAQ](https://sourceware.org/glibc/wiki/FAQ#Even_statically_linked_programs_need_some_shared_libraries_which_is_not_acceptable_for_me.__What_can_I_do.3F) and [NSS documentation](http://www.gnu.org/software/libc/manual/html_node/Name-Service-Switch.html) for more information). -
rlefevre revised this gist
Aug 14, 2018 . 1 changed file with 5 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -87,9 +87,9 @@ $ docker build -t elm . The `-t elm` option is used to name the docker image `elm`. The steps automatically executed are: - fetch and run the Alpine Linux image inside a container - install the Alpine packages required to build elm - build the haskell libraries required to build elm - build elm If this goes well, this should end after a few minutes with something like: @@ -108,6 +108,8 @@ elm latest c2a967867158 2 hours ago alpine 3.7 791c3e2ebfcb 5 weeks ago 4.2MB ``` Note that this image is not optimized for Continuous Integration of software written in elm as it includes all dependencies needed to build elm itself. We could make an image a lot smaller for this other purpose. #### 4. Retrieve the elm binary You can now retrieve the statically linked `elm` binary from the docker image. -
rlefevre revised this gist
Aug 14, 2018 . 1 changed file with 7 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -100,6 +100,13 @@ Removing intermediate container ec629eeec5a1 Successfully built c2a967867158 Successfully tagged elm:latest ``` Your new image should now be listed when running `docker images` in addition to the Alpine one used as our basis, for example: ``` $ docker images REPOSITORY TAG IMAGE ID CREATED SIZE elm latest c2a967867158 2 hours ago 1.75GB alpine 3.7 791c3e2ebfcb 5 weeks ago 4.2MB ``` #### 4. Retrieve the elm binary -
rlefevre revised this gist
Aug 14, 2018 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -105,7 +105,7 @@ Successfully tagged elm:latest You can now retrieve the statically linked `elm` binary from the docker image. As the elm compiler repository has been checked out in the `/tmp` image directory and built there, you can copy the `elm` binary from the image container to the current directory using: ``` $ docker run elm cat /tmp/compiler/dist/build/elm/elm > elm ``` -
rlefevre revised this gist
Aug 14, 2018 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -76,7 +76,7 @@ RUN cabal configure --disable-executable-dynamic --ghc-option=-optl=-static --gh RUN cabal build --jobs=1 ``` Take note of the comment above the git command. You can change some git options there if you want to use a specific elm tag/commit/branch. #### 3. Build the docker image including the statically linked elm binary
NewerOlder