mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-23 12:08:00 +01:00
Use custom prebuilt ffmpeg
This commit is contained in:
parent
4bb2e3078c
commit
d23aaca5c8
2 changed files with 10 additions and 27 deletions
|
@ -1 +1,6 @@
|
||||||
priv/static
|
assets
|
||||||
|
_build
|
||||||
|
.cargo
|
||||||
|
deps
|
||||||
|
.elixir_ls
|
||||||
|
priv
|
||||||
|
|
|
@ -1,34 +1,12 @@
|
||||||
FROM elixir:1.12.3-alpine
|
FROM elixir:1.12.3-alpine
|
||||||
|
|
||||||
RUN apk update \
|
RUN (echo "https://github.com/philomena-dev/prebuilt-ffmpeg/raw/master"; cat /etc/apk/repositories) > /tmp/repositories \
|
||||||
&& 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 \
|
&& cp /tmp/repositories /etc/apk/repositories \
|
||||||
x264-dev x265-dev libvpx-dev lame-dev opus-dev libvorbis-dev yasm \
|
&& apk update --allow-untrusted \
|
||||||
|
&& 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 --allow-untrusted \
|
||||||
&& mix local.hex --force \
|
&& mix local.hex --force \
|
||||||
&& mix local.rebar --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
|
ADD https://api.github.com/repos/philomena-dev/cli_intensities/git/refs/heads/master /tmp/cli_intensities_version.json
|
||||||
RUN git clone --depth 1 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 \
|
&& cd /tmp/cli_intensities \
|
||||||
|
|
Loading…
Reference in a new issue