Skip to content

Commit

Permalink
docker: Build Erlang from source (fix #1590)
Browse files Browse the repository at this point in the history
See https://github.com/zotonic/docker-erlang/blob/master/README.md
for more information.

(cherry picked from commit 2060573)
  • Loading branch information
ddeboer committed Jan 24, 2017
1 parent 1dd35cb commit e7d3736
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
3 changes: 1 addition & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM alpine:3.4
FROM zotonic/erlang:18.3

ADD . /opt/zotonic
WORKDIR /opt/zotonic
Expand All @@ -16,7 +16,6 @@ RUN apk add --no-cache --virtual build-deps $BUILD_APKS \
&& apk add --no-cache bash bsd-compat-headers file imagemagick \
&& apk add --no-cache --repository http://dl-3.alpinelinux.org/alpine/edge/community/ dumb-init \
&& apk add --no-cache --repository http://dl-3.alpinelinux.org/alpine/edge/testing/ gosu \
erlang erlang-inets erlang-compiler erlang-crypto erlang-mnesia erlang-ssl erlang-stdlib erlang-public-key erlang-tools erlang-dev erlang-asn1 erlang-syntax-tools erlang-eunit erlang-parsetools erlang-snmp erlang-sasl erlang-xmerl erlang-erl-interface \
&& DEBUG=1 make \
&& apk del build-deps

Expand Down
7 changes: 3 additions & 4 deletions Dockerfile.dev
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM alpine:3.4
FROM zotonic/erlang:18.3

COPY docker/zotonic.config /etc/zotonic/zotonic.config
COPY docker/erlang.config.sed /opt/zotonic/docker/erlang.config.sed
Expand All @@ -8,9 +8,8 @@ WORKDIR /opt/zotonic

RUN sed -f docker/erlang.config.sed priv/erlang.config.in > /etc/zotonic/erlang.config

RUN apk add --no-cache ca-certificates bash curl make gcc musl-dev g++ bsd-compat-headers git imagemagick inotify-tools wget \
&& apk add --no-cache --repository http://dl-3.alpinelinux.org/alpine/edge/community/ \
erlang erlang-inets erlang-compiler erlang-crypto erlang-mnesia erlang-ssl erlang-stdlib erlang-public-key erlang-tools erlang-dev erlang-asn1 erlang-syntax-tools erlang-eunit erlang-parsetools erlang-snmp erlang-sasl erlang-xmerl erlang-erl-interface
RUN apk add --no-cache ca-certificates bash curl make gcc musl-dev g++ bsd-compat-headers gettext git imagemagick inotify-tools wget \
&& apk add --no-cache --repository http://dl-3.alpinelinux.org/alpine/edge/community/ openssl-dev

VOLUME /opt/zotonic
VOLUME /etc/zotonic

0 comments on commit e7d3736

Please sign in to comment.