-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
47 lines (37 loc) · 1.11 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
42
43
44
45
46
47
# Based on marcelocg/phoenix
# Latest: Elixir 1.8.1, Phoenix 1.4.0
FROM ubuntu:latest
MAINTAINER Martin Vrkljan <mvrkljan@gmail.com>
# Dependency packages and locales
RUN apt-get -y update \
&& apt-get upgrade -y \
&& apt-get install -y \
curl \
wget \
git \
build-essential \
erlang-xmerl \
locales \
&& locale-gen en_US.UTF-8
# UTF-8
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8
# For some reason, installing Elixir tries to remove this file
# and if it doesn't exist, Elixir won't install. So, we create it.
# Thanks Daniel Berkompas for this tip.
# http://blog.danielberkompas.com
RUN touch /etc/init.d/couchdb
# Erlang package
RUN wget http://packages.erlang-solutions.com/erlang-solutions_1.0_all.deb \
&& dpkg -i erlang-solutions_1.0_all.deb \
&& apt-get update
# Elixir package
RUN apt-get install -y elixir erlang-dev erlang-parsetools erlang-tools \
&& rm erlang-solutions_1.0_all.deb
# Hex and Rebar
RUN mix local.hex --force \
&& mix local.rebar --force
# Phoenix Mix archive
RUN mix archive.install hex phx_new 1.4.0 --force
WORKDIR /code