# Elixir + Phoenix FROM elixir:latest # Install debian packages RUN apt-get update RUN apt-get install --yes build-essential inotify-tools postgresql-client # Install Phoenix packages RUN mix local.hex --force RUN mix local.rebar --force RUN mix archive.install hex phx_new --force COPY setup.sh /usr/local/bin/ RUN chmod +x /usr/local/bin/setup.sh EXPOSE 4012 ENTRYPOINT ["setup.sh"]