philomena/docker/app/Dockerfile

27 lines
1.4 KiB
Docker
Raw Normal View History

2020-09-06 18:57:33 +02:00
FROM elixir:1.10.4
2019-12-03 03:04:59 +01:00
2020-05-28 01:35:39 +02:00
RUN apt-get update \
&& apt-get -qq -y install apt-transport-https \
&& echo "deb https://deb.nodesource.com/node_12.x stretch main" >> /etc/apt/sources.list \
&& echo "deb http://apt.postgresql.org/pub/repos/apt/ stretch-pgdg main" >> /etc/apt/sources.list \
&& 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 \
&& 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 \
&& mix local.hex --force \
&& mix local.rebar --force
ADD https://api.github.com/repos/derpibooru/cli_intensities/git/refs/heads/master /tmp/cli_intensities_version.json
2020-05-28 01:35:39 +02:00
RUN git clone https://github.com/derpibooru/cli_intensities /tmp/cli_intensities \
&& cd /tmp/cli_intensities \
&& make install
2020-05-28 01:35:39 +02:00
ADD https://api.github.com/repos/derpibooru/mediatools/git/refs/heads/master /tmp/mediatools_version.json
RUN git clone https://github.com/derpibooru/mediatools /tmp/mediatools \
&& cd /tmp/mediatools \
&& make install
2019-12-03 19:36:50 +01:00
COPY docker/app/run-development /usr/local/bin/run-development
COPY docker/app/safe-rsvg-convert /usr/local/bin/safe-rsvg-convert
CMD run-development