Skip to content

Commit

Permalink
[docker] prod-mode doesn't need git, which means we don't need perl, …
Browse files Browse the repository at this point in the history
…which saves another 100MB
  • Loading branch information
shish committed Dec 24, 2023
1 parent 7929939 commit be35345
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ 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 zip unzip git unit unit-php gettext && \
curl imagemagick zip unzip unit unit-php gettext && \
rm -rf /var/lib/apt/lists/*

# Composer has 100MB of dependencies, and we only need that during build and test
FROM base AS composer
RUN apt update && apt upgrade -y && \
apt install -y composer php${PHP_VERSION}-xdebug procps net-tools vim && \
apt install -y composer php${PHP_VERSION}-xdebug git procps net-tools vim && \
rm -rf /var/lib/apt/lists/*
ENV XDEBUG_MODE=coverage

Expand Down

0 comments on commit be35345

Please sign in to comment.