-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathDockerfile
54 lines (44 loc) · 882 Bytes
/
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
42
43
44
45
46
47
48
49
50
51
52
53
54
# FROM bitwalker/alpine-erlang:19.2.1
FROM bitwalker/alpine-elixir-phoenix:latest
# Set the locale
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8
ENV MIX_ENV prod
ENV TERM xterm
RUN apk add --update \
curl \
python=2.7.12-r0 \
git-perl \
bash \
make \
gcc \
g++ \
# erlang \
# erlang-mnesia \
# erlang-public-key \
# erlang-crypto \
# erlang-ssl \
# erlang-sasl \
# erlang-asn1 \
# erlang-inets \
# erlang-os-mon \
# erlang-xmerl \
# erlang-eldap \
# erlang-syntax-tools \
&& rm -rf /var/cache/apk/*
# Switch to directory with sources
WORKDIR /src
# Install Hex+Rebar
RUN mix local.hex --force && \
mix local.rebar --force
# Copy required stuff
ADD . .
RUN mix deps.get \
mix deps.compile
RUN npm install
RUN mix compile \
&& mix phoenix.digest \
&& mix ecto.create
ADD .docker/start.sh /start.sh
CMD ["/start.sh"]