From ef9c8a4948f681c175f46c4fdcdc62dbbc528c07 Mon Sep 17 00:00:00 2001 From: Lars Tangvald Date: Wed, 1 Aug 2018 07:31:42 +0200 Subject: [PATCH] Install mysql-community-client instead of mysql-community-client-core The core package is missing certain utilities user may way, and using it doesn't save all that much in image size --- 8.0/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/8.0/Dockerfile b/8.0/Dockerfile index 3f712bb6e..8dd69ee5a 100644 --- a/8.0/Dockerfile +++ b/8.0/Dockerfile @@ -58,7 +58,7 @@ RUN { \ echo mysql-community-server mysql-community-server/re-root-pass password ''; \ echo mysql-community-server mysql-community-server/remove-test-db select false; \ } | debconf-set-selections \ - && apt-get update && apt-get install -y mysql-community-client-core="${MYSQL_VERSION}" mysql-community-server-core="${MYSQL_VERSION}" && rm -rf /var/lib/apt/lists/* \ + && apt-get update && apt-get install -y mysql-community-client="${MYSQL_VERSION}" mysql-community-server-core="${MYSQL_VERSION}" && rm -rf /var/lib/apt/lists/* \ && rm -rf /var/lib/mysql && mkdir -p /var/lib/mysql /var/run/mysqld \ && chown -R mysql:mysql /var/lib/mysql /var/run/mysqld \ # ensure that /var/run/mysqld (used for socket and lock files) is writable regardless of the UID our mysqld instance ends up having at runtime