Skip to content

Commit dec8328

Browse files
committed
Remove unnecessary packages from the image
1 parent 05ac2d3 commit dec8328

File tree

5 files changed

+10
-0
lines changed

5 files changed

+10
-0
lines changed

10/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,8 @@ RUN set -ex; \
141141
"postgresql-$PG_MAJOR=$PG_VERSION" \
142142
; \
143143
\
144+
apt-get purge --yes libmariadb3 mariadb-common mysql-common ; \
145+
apt-get autoremove --yes; \
144146
rm -rf /var/lib/apt/lists/*; \
145147
\
146148
if [ -n "$tempDir" ]; then \

11/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,8 @@ RUN set -ex; \
141141
"postgresql-$PG_MAJOR=$PG_VERSION" \
142142
; \
143143
\
144+
apt-get purge --yes libmariadb3 mariadb-common mysql-common ; \
145+
apt-get autoremove --yes; \
144146
rm -rf /var/lib/apt/lists/*; \
145147
\
146148
if [ -n "$tempDir" ]; then \

12/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,8 @@ RUN set -ex; \
141141
"postgresql-$PG_MAJOR=$PG_VERSION" \
142142
; \
143143
\
144+
apt-get purge --yes libmariadb3 mariadb-common mysql-common ; \
145+
apt-get autoremove --yes; \
144146
rm -rf /var/lib/apt/lists/*; \
145147
\
146148
if [ -n "$tempDir" ]; then \

9.5/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,8 @@ RUN set -ex; \
142142
"postgresql-contrib-$PG_MAJOR=$PG_VERSION" \
143143
; \
144144
\
145+
apt-get purge --yes libmariadb3 mariadb-common mysql-common ; \
146+
apt-get autoremove --yes; \
145147
rm -rf /var/lib/apt/lists/*; \
146148
\
147149
if [ -n "$tempDir" ]; then \

9.6/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,8 @@ RUN set -ex; \
142142
"postgresql-contrib-$PG_MAJOR=$PG_VERSION" \
143143
; \
144144
\
145+
apt-get purge --yes libmariadb3 mariadb-common mysql-common ; \
146+
apt-get autoremove --yes; \
145147
rm -rf /var/lib/apt/lists/*; \
146148
\
147149
if [ -n "$tempDir" ]; then \

0 commit comments

Comments
 (0)