mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-30 14:57:59 +01:00
rearrange dockerfile
This commit is contained in:
parent
3440a2d4a2
commit
1237d98579
1 changed files with 19 additions and 18 deletions
|
@ -1,24 +1,25 @@
|
||||||
FROM elixir:1.10.3
|
FROM elixir:1.10.3
|
||||||
|
|
||||||
# cache bust git repos
|
RUN apt-get update \
|
||||||
ADD https://api.github.com/repos/derpibooru/cli_intensities/git/refs/heads/master /tmp/cli_intensities_version.json
|
&& apt-get -qq -y install apt-transport-https \
|
||||||
ADD https://api.github.com/repos/derpibooru/mediatools/git/refs/heads/master /tmp/mediatools_version.json
|
&& 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
|
||||||
|
|
||||||
RUN apt-get update; \
|
ADD https://api.github.com/repos/derpibooru/cli_intensities/git/refs/heads/master /tmp/cli_intensities_version.json
|
||||||
apt-get -qq -y install apt-transport-https; \
|
RUN git clone https://github.com/derpibooru/cli_intensities /tmp/cli_intensities \
|
||||||
echo "deb https://deb.nodesource.com/node_12.x stretch main" >> /etc/apt/sources.list; \
|
&& cd /tmp/cli_intensities \
|
||||||
echo "deb http://apt.postgresql.org/pub/repos/apt/ stretch-pgdg main" >> /etc/apt/sources.list; \
|
&& make install
|
||||||
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 -; \
|
ADD https://api.github.com/repos/derpibooru/mediatools/git/refs/heads/master /tmp/mediatools_version.json
|
||||||
apt-get update; \
|
RUN git clone https://github.com/derpibooru/mediatools /tmp/mediatools \
|
||||||
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; \
|
&& cd /tmp/mediatools \
|
||||||
cd /tmp; \
|
&& make install
|
||||||
git clone https://github.com/derpibooru/cli_intensities; \
|
|
||||||
git clone https://github.com/derpibooru/mediatools; \
|
|
||||||
(cd cli_intensities && make install); \
|
|
||||||
(cd mediatools && make install); \
|
|
||||||
mix local.hex --force; \
|
|
||||||
mix local.rebar --force
|
|
||||||
|
|
||||||
COPY docker/app/run-development /usr/local/bin/run-development
|
COPY docker/app/run-development /usr/local/bin/run-development
|
||||||
COPY docker/app/safe-rsvg-convert /usr/local/bin/safe-rsvg-convert
|
COPY docker/app/safe-rsvg-convert /usr/local/bin/safe-rsvg-convert
|
||||||
|
|
Loading…
Reference in a new issue