Created
September 13, 2019 09:08
-
-
Save rodesousa/d181b9ff42d4a96c2cbf9a98af7dd29d to your computer and use it in GitHub Desktop.
elixir dockerfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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