Last active
December 10, 2016 00:15
-
-
Save loveJesus/62aff36da692472c0ebf74c88ce9ac25 to your computer and use it in GitHub Desktop.
God be praised, alpine elixir phoenix docker
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
#Hallelujah | |
FROM alpine | |
ADD . /hallelujah | |
WORKDIR /hallelujah | |
MAINTAINER [email protected] | |
RUN apk --update add build-base \ | |
ca-certificates \ | |
nodejs \ | |
erlang \ | |
erlang-crypto \ | |
erlang-syntax-tools \ | |
erlang-parsetools \ | |
erlang-inets \ | |
erlang-ssl \ | |
erlang-public-key \ | |
erlang-eunit \ | |
erlang-asn1 \ | |
erlang-sasl \ | |
erlang-erl-interface \ | |
erlang-dev \ | |
git \ | |
inotify-tools \ | |
postgresql-client \ | |
wget && \ | |
rm -rf /var/cache/apk/* && \ | |
update-ca-certificates && \ | |
apk --update add --virtual build-dependencies wget ca-certificates | |
ENV ELIXIR_V 1.3.4 | |
#Thank You Jesus for https://github.com/mpneuried/elixir-alpine | |
RUN apk --update add --virtual build-dependencies wget ca-certificates && \ | |
wget https://github.com/elixir-lang/elixir/releases/download/v${ELIXIR_V}/Precompiled.zip && \ | |
mkdir -p /opt/elixir-${ELIXIR_V}/ && \ | |
unzip Precompiled.zip -d /opt/elixir-${ELIXIR_V}/ && \ | |
rm Precompiled.zip && \ | |
apk del build-dependencies && \ | |
rm -rf /etc/ssl | |
# cleanup RUN rm -rf /var/cache/apk/* | |
ENV PATH $PATH:/opt/elixir-${ELIXIR_V}/bin | |
RUN mix local.hex --force && \ | |
mix local.rebar --force && \ | |
mix hex.info | |
RUN mix archive.install https://github.com/phoenixframework/archives/raw/master/phoenix_new.ez |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment