Skip to content

Commit

Permalink
fix(php-fpm): clean cache after package installation
Browse files Browse the repository at this point in the history
  • Loading branch information
sjinks committed Oct 30, 2023
1 parent 2643a1d commit a840d42
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 10 deletions.
5 changes: 3 additions & 2 deletions php-fpm/Dockerfile.74
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ RUN \
eatmydata add-apt-repository -y ppa:ondrej/php && \
eatmydata apt-get install -y php7.4-dev php7.4-xml && \
eatmydata apt-get install -y php-pear --no-install-recommends && \
pecl install timezonedb
pecl install timezonedb && \
rm -rf /var/lib/apt/lists/* /var/cache/apt/archives/*

FROM ubuntu:22.04

Expand All @@ -28,7 +29,7 @@ RUN \
eatmydata apt-get install -y php-pear --no-install-recommends && \
phpdismod ffi gettext readline sysvmsg xsl xdebug && \
eatmydata apt-get remove --purge -y software-properties-common && \
rm -rf /var/lib/apt/lists/* && \
rm -rf /var/lib/apt/lists/* /var/cache/apt/archives/* && \
eatmydata apt-get autoremove --purge -y && \
ln -s /usr/sbin/php-fpm7.4 /usr/sbin/php-fpm && \
chmod 02755 /usr/bin/crontab
Expand Down
5 changes: 3 additions & 2 deletions php-fpm/Dockerfile.80
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ RUN \
eatmydata add-apt-repository -y ppa:ondrej/php && \
eatmydata apt-get install -y php8.0-dev php8.0-xml && \
eatmydata apt-get install -y php-pear --no-install-recommends && \
pecl install timezonedb
pecl install timezonedb && \
rm -rf /var/lib/apt/lists/* /var/cache/apt/archives/*

FROM ubuntu:22.04

Expand All @@ -28,7 +29,7 @@ RUN \
eatmydata apt-get install -y php-pear --no-install-recommends && \
phpdismod ffi gettext readline sysvmsg xsl xdebug && \
eatmydata apt-get remove --purge -y software-properties-common && \
rm -rf /var/lib/apt/lists/* && \
rm -rf /var/lib/apt/lists/* /var/cache/apt/archives/* && \
eatmydata apt-get autoremove --purge -y && \
ln -s /usr/sbin/php-fpm8.0 /usr/sbin/php-fpm && \
chmod 02755 /usr/bin/crontab
Expand Down
5 changes: 3 additions & 2 deletions php-fpm/Dockerfile.81
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ RUN \
eatmydata add-apt-repository -y ppa:ondrej/php && \
eatmydata apt-get install -y php8.1-dev php8.1-xml && \
eatmydata apt-get install -y php-pear --no-install-recommends && \
pecl install timezonedb
pecl install timezonedb && \
rm -rf /var/lib/apt/lists/* /var/cache/apt/archives/*

FROM ubuntu:22.04

Expand All @@ -28,7 +29,7 @@ RUN \
eatmydata apt-get install -y php-pear --no-install-recommends && \
phpdismod ffi gettext readline sysvmsg xsl xdebug && \
eatmydata apt-get remove --purge -y software-properties-common && \
rm -rf /var/lib/apt/lists/* && \
rm -rf /var/lib/apt/lists/* /var/cache/apt/archives/* && \
eatmydata apt-get autoremove --purge -y && \
ln -s /usr/sbin/php-fpm8.1 /usr/sbin/php-fpm && \
chmod 02755 /usr/bin/crontab
Expand Down
5 changes: 3 additions & 2 deletions php-fpm/Dockerfile.82
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ RUN \
eatmydata add-apt-repository -y ppa:ondrej/php && \
eatmydata apt-get install -y php8.2-dev php8.2-xml && \
eatmydata apt-get install -y php-pear --no-install-recommends && \
pecl install timezonedb
pecl install timezonedb && \
rm -rf /var/lib/apt/lists/* /var/cache/apt/archives/*

FROM ubuntu:22.04

Expand All @@ -28,7 +29,7 @@ RUN \
eatmydata apt-get install -y php-pear --no-install-recommends && \
phpdismod ffi gettext readline sysvmsg xsl xdebug && \
eatmydata apt-get remove --purge -y software-properties-common && \
rm -rf /var/lib/apt/lists/* && \
rm -rf /var/lib/apt/lists/* /var/cache/apt/archives/* && \
eatmydata apt-get autoremove --purge -y && \
ln -s /usr/sbin/php-fpm8.2 /usr/sbin/php-fpm && \
chmod 02755 /usr/bin/crontab
Expand Down
5 changes: 3 additions & 2 deletions php-fpm/Dockerfile.83
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ RUN \
eatmydata apt-get install -y software-properties-common gnupg libmcrypt-dev zlib1g-dev libmemcached-dev libgraphicsmagick1-dev --no-install-recommends && \
eatmydata add-apt-repository -y ppa:ondrej/php && \
eatmydata apt-get install -y php8.3-dev php8.3-xml && \
eatmydata apt-get install -y php-pear --no-install-recommends
eatmydata apt-get install -y php-pear --no-install-recommends && \
rm -rf /var/lib/apt/lists/* /var/cache/apt/archives/*

RUN \
cp \
Expand Down Expand Up @@ -43,7 +44,7 @@ RUN \
eatmydata apt-get install -y php-pear --no-install-recommends && \
phpdismod ffi gettext readline sysvmsg xsl xdebug && \
eatmydata apt-get remove --purge -y software-properties-common && \
rm -rf /var/lib/apt/lists/* && \
rm -rf /var/lib/apt/lists/* /var/cache/apt/archives/* && \
eatmydata apt-get autoremove --purge -y && \
ln -s /usr/sbin/php-fpm8.3 /usr/sbin/php-fpm && \
chmod 02755 /usr/bin/crontab
Expand Down

0 comments on commit a840d42

Please sign in to comment.