Skip to content

Commit

Permalink
[docker] static ffmpeg to save 300MB of dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
shish committed Dec 24, 2023
1 parent 7f02a77 commit 7929939
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ ARG PHP_VERSION=8.2

# Install base packages which all stages (build, test, run) need
FROM debian:bookworm AS base
COPY --from=mwader/static-ffmpeg:6.1 /ffmpeg /usr/local/bin/
RUN apt update && \
apt upgrade -y && \
apt install -y curl && \
Expand All @@ -10,7 +11,7 @@ RUN apt update && \
apt update && apt install -y --no-install-recommends \
php${PHP_VERSION}-cli php${PHP_VERSION}-gd php${PHP_VERSION}-zip php${PHP_VERSION}-xml php${PHP_VERSION}-mbstring \
php${PHP_VERSION}-pgsql php${PHP_VERSION}-mysql php${PHP_VERSION}-sqlite3 php${PHP_VERSION}-curl \
curl imagemagick ffmpeg zip unzip git unit unit-php gettext && \
curl imagemagick zip unzip git unit unit-php gettext && \
rm -rf /var/lib/apt/lists/*

# Composer has 100MB of dependencies, and we only need that during build and test
Expand Down

0 comments on commit 7929939

Please sign in to comment.