Skip to content

Instantly share code, notes, and snippets.

@loveJesus
Last active December 10, 2016 00:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save loveJesus/62aff36da692472c0ebf74c88ce9ac25 to your computer and use it in GitHub Desktop.
Save loveJesus/62aff36da692472c0ebf74c88ce9ac25 to your computer and use it in GitHub Desktop.
God be praised, alpine elixir phoenix docker
#Hallelujah
FROM alpine
ADD . /hallelujah
WORKDIR /hallelujah
MAINTAINER hallelujah@loveJesus.xyz
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