Skip to content

Commit 1fbccd4

Browse files
Fix the E2E WordPress image build after Bullseye security packages 404.
Debian removed those pool files while the index still names them, so install git, the MariaDB client, and msmtp from the main archive instead. Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 51dfa77 commit 1fbccd4

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

‎local/docker/wordpress/Dockerfile‎

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,16 @@ ARG XDEBUG_VERSION=3.1.6
1111
ENV PATH="/var/www/html/wp-content/plugins/stream-src/vendor/bin:${PATH}"
1212
ENV COMPOSER_HOME=/tmp/.composer
1313

14-
RUN apt-get update; \
15-
apt-get install -y --no-install-recommends \
14+
# Debian 11 LTS ended on 2026-08-31. The bullseye-security index on
15+
# deb.debian.org still names revisions whose pool files were removed
16+
# (git 1:2.30.2-1+deb11u5 and the mariadb, curl, and gsasl updates), so
17+
# apt-get install exits 100. Drop that suite; the packages below are in
18+
# the main Bullseye archive. Bookworm images (PHP 8.1+) keep their sources.
19+
RUN if . /etc/os-release && [ "$VERSION_CODENAME" = "bullseye" ]; then \
20+
sed -i '/debian-security/d' /etc/apt/sources.list; \
21+
fi \
22+
&& apt-get update \
23+
&& apt-get install -y --no-install-recommends \
1624
# WP-CLI dependencies.
1725
bash less default-mysql-client git \
1826
# MailHog dependencies.

0 commit comments

Comments
 (0)