2025-01-21 17:15:14 UTC
175 MB
1.17
MYSQL_MAJOR8.0
MYSQL_VERSION8.0.41-1debian12
PATH/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
[#000] sha256:af302e5c37e9dc1dbe2eadc8f5059d82a914066b541b0d1a6daa91d0cc55057d - 15.39% (26.9 MB)
[#001] sha256:ba05eccb4a3005ee1662ca9a00eaf923a6c41988b6caf1439fe0abbf967b070e - 0.0% (1.08 KB)
[#002] sha256:a9a8737fb57fe0282d942d0263eb6d7dd266fbdf7593385678c561348bf90963 - 2.41% (4.22 MB)
[#003] sha256:309da8559c7e634c2dbe90758f6ec6deea2ff42492297d6290278ce38996bfb3 - 0.79% (1.38 MB)
[#004] sha256:5c416654debd29aa5d2068b7449967e85676edef5479936d4ffc67d39ae93132 - 0.0% (116 Bytes)
[#005] sha256:806d1fc27cf1f40b3bed69b85ccc042f05521b44db9b4166caab9b9bdd082dfc - 8.35% (14.6 MB)
[#006] sha256:5771c74a752d1233720aa0ec80ed5cd573dcfb075f79b66dae7f934eba0f687a - 0.0% (2.45 KB)
[#007] sha256:fd1baed5db111fc49c82ab4e1cc1c34cb51b0a775de29ca7d60df7bf52515146 - 0.0% (254 Bytes)
[#008] sha256:3d510425b1ec9e97773963efd336943c2724327c0a60a7082ab6773d08130192 - 73.05% (128 MB)
[#009] sha256:4b2a5ee78b22779099af9d3d3297ed278fa61bb6321f325cc076f98b26843ab7 - 0.0% (843 Bytes)
[#010] sha256:83a7fb0136598280edb868e150874d3573f89c401b5694d9518bc3f578c3e5b5 - 0.0% (5.2 KB)
[#011] sha256:4e9ad7cd6f139305e980c38f448b7d510cf23484c0fb5db0018eaac4c59f784f - 0.0% (122 Bytes)
# debian.sh --arch 'amd64' out/ 'bookworm' '@1736726400'
2025-01-21 17:15:14 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c groupadd -r mysql && useradd -r -g mysql mysql # buildkit
2025-01-21 17:15:14 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c apt-get update && apt-get install -y --no-install-recommends gnupg && rm -rf /var/lib/apt/lists/* # buildkit
2025-01-21 17:15:14 UTC (buildkit.dockerfile.v0)ENV GOSU_VERSION=1.17
2025-01-21 17:15:14 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends ca-certificates wget; rm -rf /var/lib/apt/lists/*; dpkgArch="$(dpkg --print-architecture | awk -F- '{ print $NF }')"; wget -O /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch"; wget -O /usr/local/bin/gosu.asc "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch.asc"; export GNUPGHOME="$(mktemp -d)"; gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4; gpg --batch --verify /usr/local/bin/gosu.asc /usr/local/bin/gosu; gpgconf --kill all; rm -rf "$GNUPGHOME" /usr/local/bin/gosu.asc; apt-mark auto '.*' > /dev/null; [ -z "$savedAptMark" ] || apt-mark manual $savedAptMark > /dev/null; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; chmod +x /usr/local/bin/gosu; gosu --version; gosu nobody true # buildkit
2025-01-21 17:15:14 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c mkdir /docker-entrypoint-initdb.d # buildkit
2025-01-21 17:15:14 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; apt-get update; apt-get install -y --no-install-recommends bzip2 openssl perl xz-utils zstd ; rm -rf /var/lib/apt/lists/* # buildkit
2025-01-21 17:15:14 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; key='BCA4 3417 C3B4 85DD 128E C6D4 B7B3 B788 A8D3 785C'; export GNUPGHOME="$(mktemp -d)"; gpg --batch --keyserver keyserver.ubuntu.com --recv-keys "$key"; mkdir -p /etc/apt/keyrings; gpg --batch --export "$key" > /etc/apt/keyrings/mysql.gpg; gpgconf --kill all; rm -rf "$GNUPGHOME" # buildkit
2025-01-21 17:15:14 UTC (buildkit.dockerfile.v0)ENV MYSQL_MAJOR=8.0
2025-01-21 17:15:14 UTC (buildkit.dockerfile.v0)ENV MYSQL_VERSION=8.0.41-1debian12
2025-01-21 17:15:14 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c echo 'deb [ signed-by=/etc/apt/keyrings/mysql.gpg ] http://repo.mysql.com/apt/debian/ bookworm mysql-8.0' > /etc/apt/sources.list.d/mysql.list # buildkit
2025-01-21 17:15:14 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c { echo mysql-community-server mysql-community-server/data-dir select ''; echo mysql-community-server mysql-community-server/root-pass password ''; 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="${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 && chmod 1777 /var/run/mysqld /var/lib/mysql # buildkit
2025-01-21 17:15:14 UTC (buildkit.dockerfile.v0)VOLUME [/var/lib/mysql]
2025-01-21 17:15:14 UTC (buildkit.dockerfile.v0)COPY config/ /etc/mysql/ # buildkit
2025-01-21 17:15:14 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint.sh /usr/local/bin/ # buildkit
2025-01-21 17:15:14 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c ln -s usr/local/bin/docker-entrypoint.sh /entrypoint.sh # backwards compat # buildkit
2025-01-21 17:15:14 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-entrypoint.sh"]
2025-01-21 17:15:14 UTC (buildkit.dockerfile.v0)EXPOSE map[3306/tcp:{} 33060/tcp:{}]
2025-01-21 17:15:14 UTC (buildkit.dockerfile.v0)CMD ["mysqld"]
Please be careful as this will not just delete the reference but also the actual content!
For example when you have latest and v1.2.3 both pointing to the same image
the deletion of latest will also permanently remove v1.2.3.