-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
30 lines (21 loc) · 913 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
FROM debian:jessie
MAINTAINER ben@bencao.it
RUN apt-get update && \
apt-get install -y curl wget locales git && \
wget https://packages.erlang-solutions.com/erlang-solutions_1.0_all.deb && \
dpkg -i erlang-solutions_1.0_all.deb && \
curl -sL https://deb.nodesource.com/setup_4.x | bash - && \
apt-get update && \
apt-get install -y elixir erlang-dev libncurses5-dev build-essential nodejs && \
apt-get clean
# setup utf-8 locale
RUN echo "en_US.UTF-8 UTF-8" > /etc/locale.gen && \
locale-gen && \
update-locale LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 LC_COLLATE=en_US.UTF-8 LC_CTYPE=en_US.UTF-8
ENV LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 LC_COLLATE=en_US.UTF-8 LC_CTYPE=en_US.UTF-8
WORKDIR /usr/src/app
EXPOSE 4000
ADD . /usr/src/app
RUN mix local.hex --force && mix local.rebar --force && mix deps.get && mix compile
RUN cd apps/web_ui && npm install
CMD mix phoenix.server