2021-01-21 20:46:23 +01:00
|
|
|
FROM elixir:1.11.3
|
2020-10-26 22:01:29 +01:00
|
|
|
|
|
|
|
ARG DEBIAN_FRONTEND=noninteractive
|
2019-12-03 03:04:59 +01:00
|
|
|
|
2020-05-28 01:35:39 +02:00
|
|
|
RUN apt-get update \
|
2020-10-26 22:01:29 +01:00
|
|
|
&& apt-get -qq -y install apt-transport-https wget gnupg \
|
2020-12-01 06:04:45 +01:00
|
|
|
&& echo "deb https://deb.nodesource.com/node_12.x buster main" >> /etc/apt/sources.list \
|
|
|
|
&& echo "deb http://apt.postgresql.org/pub/repos/apt/ buster-pgdg main" >> /etc/apt/sources.list \
|
2020-05-28 01:35:39 +02:00
|
|
|
&& wget -qO - "https://www.postgresql.org/media/keys/ACCC4CF8.asc" | apt-key add - \
|
|
|
|
&& wget -qO - "https://deb.nodesource.com/gpgkey/nodesource.gpg.key" | apt-key add - \
|
|
|
|
&& apt-get update \
|
2020-10-26 22:01:29 +01:00
|
|
|
&& apt-get -qq -y dist-upgrade \
|
|
|
|
&& apt-get -qq -y install inotify-tools postgresql-client build-essential git ffmpeg libavformat-dev libavcodec-dev libswscale-dev nodejs libmagic-dev libpng-dev gifsicle optipng libjpeg-progs librsvg2-bin imagemagick \
|
2020-05-28 01:35:39 +02:00
|
|
|
&& mix local.hex --force \
|
|
|
|
&& mix local.rebar --force
|
|
|
|
|
2020-10-26 22:01:29 +01:00
|
|
|
ADD https://api.github.com/repos/philomena-dev/cli_intensities/git/refs/heads/master /tmp/cli_intensities_version.json
|
|
|
|
RUN git clone https://github.com/philomena-dev/cli_intensities /tmp/cli_intensities \
|
2020-05-28 01:35:39 +02:00
|
|
|
&& cd /tmp/cli_intensities \
|
|
|
|
&& make install
|
2020-05-19 04:44:43 +02:00
|
|
|
|
2020-10-26 22:01:29 +01:00
|
|
|
ADD https://api.github.com/repos/philomena-dev/mediatools/git/refs/heads/master /tmp/mediatools_version.json
|
|
|
|
RUN git clone https://github.com/philomena-dev/mediatools /tmp/mediatools \
|
2020-05-28 01:35:39 +02:00
|
|
|
&& cd /tmp/mediatools \
|
|
|
|
&& make install
|
2019-12-03 19:36:50 +01:00
|
|
|
|
|
|
|
COPY docker/app/run-development /usr/local/bin/run-development
|
2020-10-26 22:01:29 +01:00
|
|
|
COPY docker/app/run-test /usr/local/bin/run-test
|
2019-12-03 19:36:50 +01:00
|
|
|
COPY docker/app/safe-rsvg-convert /usr/local/bin/safe-rsvg-convert
|
2020-12-16 16:53:26 +01:00
|
|
|
COPY docker/app/purge-cache /usr/local/bin/purge-cache
|
2020-03-09 23:21:18 +01:00
|
|
|
CMD run-development
|