-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
41 lines (35 loc) · 1.39 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
FROM mhart/alpine-node:latest
ENV ELIXIR_VERSION 1.3.2
RUN apk --update add build-base \
ca-certificates \
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
RUN apk --update add --virtual build-dependencies wget ca-certificates && \
wget https://github.com/elixir-lang/elixir/releases/download/v${ELIXIR_VERSION}/Precompiled.zip && \
mkdir -p /opt/elixir-${ELIXIR_VERSION}/ && \
unzip Precompiled.zip -d /opt/elixir-${ELIXIR_VERSION}/ && \
rm Precompiled.zip && \
apk del build-dependencies && \
rm -rf /etc/ssl && \
rm -rf /var/cache/apk/*
ENV PATH $PATH:/opt/elixir-${ELIXIR_VERSION}/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 --force