Repository navigation
Expand file tree
/
Copy pathDockerfile
More file actions
48 lines (34 loc) · 1.56 KB
/
Copy pathDockerfile
File metadata and controls
48 lines (34 loc) · 1.56 KB
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
FROM debian:jessie
MAINTAINER Alexey Kovrizhkin <lekovr+tpro@gmail.com>
ENV DOCKERFILE_VERSION 180425
ENV DEBIAN_FRONTEND noninteractive
ENV INITRD No
ENV GOSU_VER=1.10
# user op
RUN useradd -m -r -s /bin/bash -Gwww-data -gusers -gsudo op
# -------------------------------------------------------------------------------
# Run custom setup scripts
RUN apt-get update && apt-get install -y \
libwxbase3.0-0 libwxgtk3.0-0 libsctp1 wget git locales curl make python \
&& localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8
ENV LANG en_US.utf8
RUN arch="$(dpkg --print-architecture | awk -F- '{ print $NF }')" \
&& curl -o /usr/local/bin/gosu -SL "https://github.com/tianon/gosu/releases/download/${GOSU_VER}/gosu-$arch" \
&& chmod +x /usr/local/bin/gosu \
&& wget -nv https://packages.erlang-solutions.com/erlang/esl-erlang/FLAVOUR_1_general/esl-erlang_20.3-1~debian~jessie_${arch}.deb \
&& dpkg -i esl-erlang_20.3-1~debian~jessie_${arch}.deb \
&& rm esl-erlang_20.3-1~debian~jessie_${arch}.deb \
&& wget -nv https://packages.erlang-solutions.com/erlang-solutions_1.0_all.deb \
&& dpkg -i erlang-solutions_1.0_all.deb \
&& rm erlang-solutions_1.0_all.deb \
&& apt-get update \
&& apt-get install elixir \
&& rm -rf /var/lib/apt/lists/*
# -------------------------------------------------------------------------------
# Get local deps
COPY mix.exs /root/mix.exs
RUN cd /root \
&& mix do local.hex --force, local.rebar --force, deps.get
# ------------------------------------------------------------
WORKDIR /home/app
ENV APPUSER op