-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
31 lines (23 loc) · 905 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 ubuntu:14.04
MAINTAINER Appcues Engineering <[email protected]>
RUN export DEBIAN_FRONTEND=noninteractive && \
apt-get -y install curl locales && \
locale-gen "en_US.UTF-8" && \
export LANG=en_US.UTF-8 && \
curl -o /tmp/erlang.deb http://packages.erlang-solutions.com/erlang-solutions_1.0_all.deb && \
dpkg -i /tmp/erlang.deb && \
rm -rf /tmp/erlang.deb && \
(curl -sL https://deb.nodesource.com/setup_5.x | bash) && \
apt-get install -y erlang=1:18.1 elixir=1.1.1-2 postgresql-client nodejs git && \
apt-get clean -y && \
rm -rf /var/cache/apt/*
ENV LANG=en_US.UTF-8
RUN mix local.hex --force && \
mix local.rebar --force
ONBUILD WORKDIR /usr/src/app
ONBUILD COPY *.js* /usr/src/app/
ONBUILD RUN npm install
ONBUILD ENV MIX_ENV prod
ONBUILD COPY mix.* /usr/src/app/
ONBUILD COPY config /usr/src/app/
ONBUILD RUN mix do deps.get, deps.compile