Created
July 28, 2016 17:58
-
-
Save Donavan/6c74deb57b8f95632c886988621f264e to your computer and use it in GitHub Desktop.
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 ubuntu:14.04.3 | |
# Set the locale, otherwise elixir will complain later on | |
RUN locale-gen en_US.UTF-8 | |
ENV LANG en_US.UTF-8 | |
ENV LANGUAGE en_US:en | |
ENV LC_ALL en_US.UTF-8 | |
# wget for convenience, use curl if you want to | |
RUN apt-get -y -q install wget | |
# add erlang otp | |
RUN wget https://packages.erlang-solutions.com/erlang-solutions_1.0_all.deb | |
RUN dpkg -i erlang-solutions_1.0_all.deb | |
RUN apt-get update | |
RUN apt-get install -y -q imagemagick | |
RUN wget https://packages.erlang-solutions.com/erlang/esl-erlang/FLAVOUR_1_general/esl-erlang_18.3.4-1~ubuntu~wily_amd64.deb | |
RUN apt-get -y install libwxgtk2.8-0 | |
RUN dpkg -i esl-erlang_18.3.4-1~ubuntu~wily_amd64.deb | |
RUN apt-get install elixir | |
ADD . /app | |
WORKDIR /app | |
RUN mix local.hex --force | |
RUN mix deps.get --only-prod | |
RUN mix compile | |
CMD ["mix", "phoenix.server"] | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment