Skip to content

Commit 7ca6f5d

Browse files
committed
build: ensure we purge apt cache after install
1 parent 4042ffe commit 7ca6f5d

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

examples/laravel/Dockerfile

+4-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,10 @@ RUN apt-get update && apt-get install --no-install-recommends -y \
1919
libmagickwand-dev \
2020
libghc-postgresql-libpq-dev \
2121
libbz2-dev \
22-
libfontconfig && rm -rf /var/lib/apt/lists/*
22+
libfontconfig \
23+
&& apt-get -y autoremove \
24+
&& apt-get clean \
25+
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
2326

2427
# PHP Extensions needed for Laravel
2528
RUN docker-php-ext-install calendar zip intl pdo_mysql bcmath opcache pdo

examples/yii2/Dockerfile

+4-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,10 @@ RUN apt-get update && apt-get install --no-install-recommends -y \
1616
libmagickwand-dev \
1717
libghc-postgresql-libpq-dev \
1818
libbz2-dev \
19-
libfontconfig && rm -rf /var/lib/apt/lists/*
19+
libfontconfig \
20+
&& apt-get -y autoremove \
21+
&& apt-get clean \
22+
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
2023

2124
# PHP Extensions needed for yii2
2225
RUN docker-php-ext-install calendar zip mcrypt intl mbstring pdo_mysql bcmath opcache pdo pdo_pgsql

0 commit comments

Comments
 (0)