Skip to content

Instantly share code, notes, and snippets.

@rodesousa
Created September 13, 2019 09:08
Show Gist options
  • Save rodesousa/d181b9ff42d4a96c2cbf9a98af7dd29d to your computer and use it in GitHub Desktop.
Save rodesousa/d181b9ff42d4a96c2cbf9a98af7dd29d to your computer and use it in GitHub Desktop.
elixir dockerfile
FROM elixir:1.9.1
MAINTAINER Nicolas Bettenburg <nicbet@gmail.com>
RUN mix local.hex --force \
&& mix archive.install --force hex phx_new 1.4.9 \
&& apt-get update \
&& curl -sL https://deb.nodesource.com/setup_10.x | bash \
&& apt-get install -y apt-utils \
&& apt-get install -y nodejs \
&& apt-get install -y build-essential \
&& apt-get install -y inotify-tools \
&& mix local.rebar --force
ENV APP_HOME /app
RUN mkdir -p $APP_HOME
WORKDIR $APP_HOME
EXPOSE 4000
CMD ["mix", "phx.server"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment