Skip to content

The smallest docker image for recent Elm compiler >=0.19.1 (https://elm-lang.org/) + tools.

License

Notifications You must be signed in to change notification settings

piotr-semenov/elm-docker

Repository files navigation

Elm:0.19.1 Docker Pull

How to use Elm compiler/tools from this Docker image?

Just use the following alias template to modify your .bashrc (or .bash_profile if OSX):

alias <cmd>='docker run --rm --entrypoint "<cmd>" -v `pwd`:/workdir -v `pwd`/.elm:/.elm -w /workdir -e http_proxy -e https_proxy semenovp/tiny-elm:ta-latest'

The placeholder <cmd> stands for elm or tools like elm-analyse, elm-test, etc.

Now you are ready to go. For example, do like this:

elm make /path/to/file.elm --output=/path/to/file.js --optimize

elm-test --version
> 0.19.1-revision4

What Docker images are provided?

Please, review the images proposed by this repository.

Elm tools available in Docker image Docker image tags
elm latest, 0.19.1
elm, elm-test t-latest
elm, elm-analyse a-latest
elm, elm-review r-latest
elm, elm-test, elm-analyse ta-latest
elm, elm-test, elm-analyse, elm-review all-latest

How to build on your own?

Use build arg elmpackages to select the Elm tools you want to be in Docker image.

docker build --build-arg elmpackages="elm-test elm-coverage elm-esm" -t semenovp/tiny-elm:tce-latest .

List of competing Docker images

Review the sizes of another elm-related images retrieved from DockerHub against current one built on Elm v0.19.1.

REPOSITORY YYYY-MM-DD COMPRESSED / UNCOMPRESSED SIZE
semenovp/tiny-elm:latest 2020-12-02 7.51MB / 30.1MB
codesimple/elm:0.19 2019-11-20 25.4MB / 89.7MB
holmusk/elm-ci:latest 2019-11-22 464.42MB / 1.27GB
semenovp/tiny-elm:a-latest 2020-12-02 42.29MB / 126MB
sirehna/elm-analyse:latest 2020-05-06 59.42MB / 172MB
semenovp/tiny-elm:t-latest 2020-12-02 41.69MB / 130MB
aminnairi/elm-test:latest 2020-02-27 54.41MB / 176MB
ymtszw/elm_for_ci:0.19.0 2019-11-08 79.6MB / 241MB
pastelinc/elm-test:latest 2020-07-16 349.13MB / 971MB
semenovp/tiny-elm:r-latest 2020-12-02 41.19MB / 124MB