-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
40 lines (26 loc) · 1.03 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
FROM elixir:1.6
# --- Set Locale to en_US.UTF-8 ---
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update && apt-get install -y locales
RUN echo "en_US.UTF-8 UTF-8" > /etc/locale.gen && \
locale-gen en_US.UTF-8 && \
dpkg-reconfigure locales && \
/usr/sbin/update-locale LANG=en_US.UTF-8
ENV LC_ALL en_US.UTF-8
# --- Erlang ODBC ---
RUN apt-get install erlang-odbc -y
# --- MSSQL ODBC INSTALL ---
RUN apt-get update && apt-get install -y --no-install-recommends apt-transport-https
RUN curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add - \
&& curl https://packages.microsoft.com/config/debian/8/prod.list | tee -a /etc/apt/sources.list.d/mssql-release.list \
&& apt-get update \
&& ACCEPT_EULA=Y apt-get install msodbcsql=13.1.9.2-1 -y \
&& apt-get install unixodbc-dev -y
# --- APP INSTALL ---
RUN mix local.hex --force && \
mix local.rebar --force
COPY . /usr/src/app
WORKDIR /usr/src/app
RUN mix do deps.get
# --- Be able to run wait for it script (for MS SQL) ---
RUN chmod +x /usr/src/app/wait-for-it.sh