Skip to content

Instantly share code, notes, and snippets.

@maxjacobson
Last active September 7, 2018 13:31
Show Gist options
  • Save maxjacobson/ec3e03bf792f249185bbf17684f9a5cf to your computer and use it in GitHub Desktop.
Save maxjacobson/ec3e03bf792f249185bbf17684f9a5cf to your computer and use it in GitHub Desktop.
elm dev environment dockerfile -- doesn't copy code into the image (which means it wouldn't be useful in production), you're expected to use it by volume-mounting your source code into `/elm-code`
FROM node:10.9.0-jessie
WORKDIR /elm-code
ENV NPM_CONFIG_PREFIX=/home/node/.npm-global
RUN apt-get update && \
apt-get upgrade --yes && \
apt-get install --yes \
wget && \
wget "https://github.com/elm/compiler/releases/download/0.19.0/binaries-for-linux.tar.gz" && \
tar xzf binaries-for-linux.tar.gz && \
mv elm /usr/local/bin/
USER node
RUN mkdir ~/.npm-global && npm install -g create-elm-app@2.0.3
ENV PATH="/home/node/.npm-global/bin:${PATH}"
USER root
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment