Skip to content

Commit

Permalink
update dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
th0mk committed Nov 10, 2024
1 parent 80855fa commit 950c4c7
Showing 1 changed file with 7 additions and 25 deletions.
32 changes: 7 additions & 25 deletions src/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,30 +1,12 @@
#See https://aka.ms/containerfastmode to understand how Visual Studio uses this Dockerfile to build your images for faster debugging.

FROM mcr.microsoft.com/dotnet/runtime:8.0 AS base
# Install dependencies and add FFmpeg repository
RUN apt-get update && apt-get install -y \
libgdiplus \
libwebp-dev \
webp \
wget \
xz-utils \
libvpx7 \
libx264-163 \
libx265-199 \
libmp3lame0 \
libass9 \
libwebpmux3 \
libvorbis0a \
libtheora0 \
libopus0 \
&& rm -rf /var/lib/apt/lists/*

# Install latest static FFmpeg build
RUN wget https://johnvansickle.com/ffmpeg/releases/ffmpeg-release-amd64-static.tar.xz \
&& tar xvf ffmpeg-release-amd64-static.tar.xz \
&& mv ffmpeg-*-amd64-static/ffmpeg /usr/local/bin/ \
&& mv ffmpeg-*-amd64-static/ffprobe /usr/local/bin/ \
&& rm -rf ffmpeg-*-amd64-static* \
&& chmod +x /usr/local/bin/ffmpeg \
&& chmod +x /usr/local/bin/ffprobe
# Copy FFmpeg from the official FFmpeg image - using alpine variant for static binaries
COPY --from=jrottenberg/ffmpeg:7.1-alpine320 /usr/local /usr/local/

# Install required dependencies
RUN apt-get update && apt-get install -y libgdiplus

WORKDIR /app

Expand Down

0 comments on commit 950c4c7

Please sign in to comment.