Alpine Elm Docker

A Dockerfile for creating a minimal alpine docker image for your CI builds

2018-09-09

A Dockerfile for creating a minimal alpine docker image for your CI builds I salvaged from a Slack conversation.

FROM alpine
RUN apk add binutils \
  && wget -qO - "https://github.com/elm/compiler/releases/download/0.19.0/binaries-for-linux.tar.gz" \
  | tar -zxC /usr/local/bin/ && strip /usr/local/bin/elm && apk del binutils

This will result in a docker image that is roughly the size of the Elm binaries we’re packaging - about 40MB(!) as of the time of writing this.

{ mind | state = Blown }

Comments

The comments for this post are available on this issue on GitHub. Feel free to engage in conversation over there.

If you decide to enable JavaScript the GitHub API will be used to display the conversation here for the viewer's convenience.