-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
45 lines (37 loc) · 869 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
FROM elixir:1.4.2-slim
MAINTAINER homi
ENV TZ Asia/Tokyo
RUN set -x && \
apt-get update && \
apt-get install -y --no-install-recommends \
nodejs \
npm \
mysql-client \
inotify-tools \
git \
make \
imagemagick \
tar \
ssh \
gzip \
g++ \
ca-certificates \
curl && \
rm -rf /var/lib/apt/lists/*
# Add erlang-history
RUN git clone -q https://github.com/ferd/erlang-history.git && \
cd erlang-history && \
make install && \
cd - && \
rm -fR erlang-history
#set timezone
RUN echo "${TZ}" > /etc/timezone && \
dpkg-reconfigure -f noninteractive tzdata
# Add local node module binaries to PATH
ENV PATH $PATH:node_modules/.bin:/opt/elixir-1.4.5/bin
# Install Hex+Rebar
RUN mix local.hex --force && \
mix local.rebar --force && \
mix hex.info
EXPOSE 4002
CMD ["sh", "-c", "mix deps.get && mix phoenix.server"]