Alpine Elm Docker

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 }