Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,10 @@ RUN git clone https://github.com/libass/libass.git && \
RUN git clone https://git.ffmpeg.org/ffmpeg.git ffmpeg && \
cd ffmpeg && \
git checkout n7.0.2 && \
PKG_CONFIG_PATH="/usr/lib/x86_64-linux-gnu/pkgconfig:/usr/local/lib/pkgconfig" \
DEB_HOST_MULTIARCH=$(dpkg-architecture -qDEB_HOST_MULTIARCH) && \
PKG_CONFIG_PATH="/usr/lib/${DEB_HOST_MULTIARCH}/pkgconfig:/usr/local/lib/pkgconfig" \
CFLAGS="-I/usr/include/freetype2" \
LDFLAGS="-L/usr/lib/x86_64-linux-gnu" \
LDFLAGS="-L/usr/lib/${DEB_HOST_MULTIARCH}" \
./configure --prefix=/usr/local \
--enable-gpl \
--enable-pthreads \
Expand All @@ -134,7 +135,7 @@ RUN git clone https://git.ffmpeg.org/ffmpeg.git ffmpeg && \
--enable-libsrt \
--enable-filter=drawtext \
--extra-cflags="-I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include" \
--extra-ldflags="-L/usr/lib/x86_64-linux-gnu -lfreetype -lfontconfig" \
--extra-ldflags="-L/usr/lib/${DEB_HOST_MULTIARCH} -lfreetype -lfontconfig" \
--enable-gnutls \
&& make -j$(nproc) && \
make install && \
Expand Down Expand Up @@ -197,4 +198,4 @@ gunicorn --bind 0.0.0.0:8080 \
chmod +x /app/run_gunicorn.sh

# Run the shell script
CMD ["/app/run_gunicorn.sh"]
CMD ["/app/run_gunicorn.sh"]