2016-11-30 13:33:07 +00:00
|
|
|
FROM alpine:3.4
|
|
|
|
MAINTAINER ProcessOne <contact@process-one.net>
|
|
|
|
|
2016-12-06 11:27:55 +00:00
|
|
|
RUN echo \
|
|
|
|
# Replacing default repositories with edge ones as we need Elixir 1.3.x
|
|
|
|
# Previous version of Elixir do not handle our deps properly
|
2016-12-07 18:26:19 +00:00
|
|
|
&& echo @stable "http://dl-cdn.alpinelinux.org/alpine/v3.4/main" > /etc/apk/repositories \
|
|
|
|
&& echo "http://dl-cdn.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories \
|
2016-12-06 11:27:55 +00:00
|
|
|
&& echo "http://dl-cdn.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories \
|
|
|
|
&& echo "http://dl-cdn.alpinelinux.org/alpine/edge/main" >> /etc/apk/repositories && \
|
|
|
|
|
|
|
|
# Install elixir from apk
|
2016-12-07 18:26:19 +00:00
|
|
|
apk add --no-cache build-base git zlib-dev openssl-dev yaml-dev expat-dev@stable \
|
2016-12-01 08:31:33 +00:00
|
|
|
elixir erlang-crypto erlang-syntax-tools erlang-parsetools \
|
2016-12-06 11:27:55 +00:00
|
|
|
erlang-eunit erlang-mnesia
|
2016-11-30 13:33:07 +00:00
|
|
|
|
|
|
|
# Install Hex+Rebar
|
|
|
|
RUN mix local.hex --force && \
|
|
|
|
mix local.rebar --force
|
|
|
|
|
|
|
|
EXPOSE 5222 5280
|
|
|
|
|
|
|
|
ENTRYPOINT ["/usr/bin/mix"]
|
|
|
|
|
|
|
|
CMD ["compile"]
|