mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-27 13:47:58 +01:00
Require building ffmpeg
This commit is contained in:
parent
87ecd1009f
commit
416d95ff6b
2 changed files with 28 additions and 3 deletions
1
.dockerignore
Normal file
1
.dockerignore
Normal file
|
@ -0,0 +1 @@
|
|||
priv/static
|
|
@ -1,17 +1,41 @@
|
|||
FROM elixir:1.12.3-alpine
|
||||
|
||||
RUN apk update \
|
||||
&& apk add inotify-tools build-base git ffmpeg ffmpeg-dev npm nodejs file-dev libpng-dev gifsicle optipng libjpeg-turbo-utils librsvg imagemagick postgresql-client wget rust cargo \
|
||||
&& apk add inotify-tools build-base git npm nodejs file-dev libpng-dev gifsicle optipng libjpeg-turbo-utils librsvg imagemagick postgresql-client wget rust cargo \
|
||||
x264-dev x265-dev libvpx-dev lame-dev opus-dev libvorbis-dev yasm \
|
||||
&& mix local.hex --force \
|
||||
&& mix local.rebar --force
|
||||
|
||||
ADD https://api.github.com/repos/philomena-dev/FFmpeg/git/refs/heads/release/4.4 /tmp/FFmpeg_version.json
|
||||
RUN git clone --depth 1 https://github.com/philomena-dev/FFmpeg /tmp/FFmpeg \
|
||||
&& cd /tmp/FFmpeg \
|
||||
&& ./configure \
|
||||
--prefix=/usr \
|
||||
--enable-avresample \
|
||||
--enable-avfilter \
|
||||
--enable-gpl \
|
||||
--enable-libmp3lame \
|
||||
--enable-libvorbis \
|
||||
--enable-libvpx \
|
||||
--enable-libx264 \
|
||||
--enable-libx265 \
|
||||
--enable-postproc \
|
||||
--enable-pic \
|
||||
--enable-pthreads \
|
||||
--enable-shared \
|
||||
--disable-stripping \
|
||||
--disable-static \
|
||||
--disable-librtmp \
|
||||
--enable-libopus \
|
||||
&& make -j$(nproc) install
|
||||
|
||||
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 \
|
||||
RUN git clone --depth 1 https://github.com/philomena-dev/cli_intensities /tmp/cli_intensities \
|
||||
&& cd /tmp/cli_intensities \
|
||||
&& make -j$(nproc) install
|
||||
|
||||
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 \
|
||||
RUN git clone --depth 1 https://github.com/philomena-dev/mediatools /tmp/mediatools \
|
||||
&& ln -s /usr/lib/librsvg-2.so.2 /usr/lib/librsvg-2.so \
|
||||
&& cd /tmp/mediatools \
|
||||
&& make -j$(nproc) install
|
||||
|
|
Loading…
Reference in a new issue