-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
33 lines (26 loc) · 1.02 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
FROM erlang:22-alpine
MAINTAINER Anthony Smith <[email protected]>
ENV ELIXIR_VERSION="v1.8.2"
ENV LANG=C.UTF-8
ENV APP_HOME /usr/src/app
RUN set -xe \
&& OTP_MAJOR_VERSION=${OTP_VERSION:0:2} \
&& ELIXIR_DOWNLOAD_URL="https://repo.hex.pm/builds/elixir/${ELIXIR_VERSION}-otp-${OTP_MAJOR_VERSION}.zip" \
&& ELIXIR_DOWNLOAD_SHA256="4244bb42eedd051c2b5038d495828a04779b47f1aead63826be66832fa535906" \
&& buildDeps=' \
ca-certificates \
curl \
unzip \
' \
&& apk add --no-cache --virtual .build-deps $buildDeps \
&& curl -fSL -o elixir-precompiled.zip $ELIXIR_DOWNLOAD_URL \
&& echo "$ELIXIR_DOWNLOAD_SHA256 elixir-precompiled.zip" | sha256sum -c - \
&& unzip -d /usr/local elixir-precompiled.zip \
&& rm elixir-precompiled.zip \
&& apk del .build-deps
RUN apk add --no-cache git && \
apk add --no-cache build-base && \
apk add --no-cache bash
RUN mix local.hex --force && \
mix local.rebar --force
WORKDIR $APP_HOME