2023-12-18 23:06:09 UTC
171 MB
1.16
MYSQL_MAJOR8.0
MYSQL_VERSION8.0.35-1debian11
PATH/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
[#000] sha256:0e0969fcaa8240e1eeb53f9f5d4ddd1bf89a2c9971c9cbe455eba0e66eeefb53 - 17.54% (30 MB)
[#001] sha256:2509e99ccd909e6cff58bfebf07d4aa9488751c812eb4942c6162318133c16c8 - 0.0% (1.61 KB)
[#002] sha256:18449158c1925dd80875324d6569ccd77dd7508df103db08b1b1044cab64a8bf - 2.35% (4.01 MB)
[#003] sha256:4838008371a5f6eb05c3de82aeec5ec59eee141bc710db552c11c7f136c5aa9d - 0.82% (1.4 MB)
[#004] sha256:555a500de9e6c79d9df638dd56687bc372c51258a8f30664e7f3f9d5df4bfbc2 - 0.0% (116 Bytes)
[#005] sha256:7788a0cfe39d71e7c76d4f5357b07cf1cd33a8f2f726ba980c3a125ba9a7676b - 6.95% (11.9 MB)
[#006] sha256:4d82554e9050b5a36796abc5036ef507eeb5d6ef972e45712059e74068677d1b - 0.0% (2.43 KB)
[#007] sha256:473684d155cf497a12db85f2a6d6e4803909bc09a6dff98a102b633538c92098 - 0.0% (247 Bytes)
[#008] sha256:a2eabb9f2adb1a6659cb13f32839a6a85b37bf47bda04f945a66e7749856fda6 - 72.33% (124 MB)
[#009] sha256:80382a09301fb5162ccba05e694537807d9c820819e45aed2c7116aa4b556156 - 0.0% (843 Bytes)
[#010] sha256:b929280da2d3a9f684ab8d6c5a507a8eaa084d46438da16dfcbfba11a457ca28 - 0.0% (5.06 KB)
[#011] sha256:241a1df60142e3c991718fe72aeb0111667152aa64ff82e94d3c6e1ab7cdc8da - 0.0% (122 Bytes)
/bin/sh -c #(nop) ADD file:bd961ef3fd78ceb8ce13f43a6b265e2bef640dfff887462b8ceb73a1d4637401 in /
2023-12-18 23:06:09 UTC/bin/sh -c #(nop) CMD ["bash"]
2023-12-18 23:06:09 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c groupadd -r mysql && useradd -r -g mysql mysql # buildkit
2023-12-18 23:06:09 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
2023-12-18 23:06:09 UTC (buildkit.dockerfile.v0)ENV GOSU_VERSION=1.16
2023-12-18 23:06:09 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
2023-12-18 23:06:09 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c mkdir /docker-entrypoint-initdb.d # buildkit
2023-12-18 23:06:09 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
2023-12-18 23:06:09 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
2023-12-18 23:06:09 UTC (buildkit.dockerfile.v0)ENV MYSQL_MAJOR=8.0
2023-12-18 23:06:09 UTC (buildkit.dockerfile.v0)ENV MYSQL_VERSION=8.0.35-1debian11
2023-12-18 23:06:09 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c echo 'deb [ signed-by=/etc/apt/keyrings/mysql.gpg ] http://repo.mysql.com/apt/debian/ bullseye mysql-8.0' > /etc/apt/sources.list.d/mysql.list # buildkit
2023-12-18 23:06:09 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
2023-12-18 23:06:09 UTC (buildkit.dockerfile.v0)VOLUME [/var/lib/mysql]
2023-12-18 23:06:09 UTC (buildkit.dockerfile.v0)COPY config/ /etc/mysql/ # buildkit
2023-12-18 23:06:09 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint.sh /usr/local/bin/ # buildkit
2023-12-18 23:06:09 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c ln -s usr/local/bin/docker-entrypoint.sh /entrypoint.sh # backwards compat # buildkit
2023-12-18 23:06:09 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-entrypoint.sh"]
2023-12-18 23:06:09 UTC (buildkit.dockerfile.v0)EXPOSE map[3306/tcp:{} 33060/tcp:{}]
2023-12-18 23:06:09 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.