Skip to content

Conversation

@nathanielhourt
Copy link

Since upgrading the Apache image to the Debian Trixie release, the
example of a "full" image is outdated. This updates it to work again.

Notably, it requires installing the Sury Debian repo as the official
repo no longer carries libc-client-dev.

Since upgrading the Apache image to the Debian Trixie release, the
example of a "full" image is outdated. This updates it to work again.

Notably, it requires installing the Sury Debian repo as the official
repo no longer carries libc-client-dev.
supervisor \
lsb-release \
ca-certificates \
curl \
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Those are not required as runtime dependencies. And already included in the base image anyway.

\
curl -sSLo /tmp/debsuryorg-archive-keyring.deb https://packages.sury.org/debsuryorg-archive-keyring.deb; \
dpkg -i /tmp/debsuryorg-archive-keyring.deb; \
sh -c 'echo "deb [signed-by=/usr/share/keyrings/debsuryorg-archive-keyring.gpg] https://packages.sury.org/php/ $(lsb_release -sc) main" > /etc/apt/sources.list.d/php.list'; \
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This repo does not provide libc-client-dev.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we should just remove imap from the example then

@rodinux
Copy link

rodinux commented Sep 23, 2025

it will be nice fix this documentation... for now trying your dockerfile gives me an error

ERROR: failed to build: failed to solve: process "/bin/sh -c set -ex;         savedAptMark=\"$(apt-mark showmanual)\";         curl -sSLo /tmp/debsuryorg-archive-keyring.deb https://packages.sury.org/debsuryorg-archive-keyring.deb;     dpkg -i /tmp/debsuryorg-archive-keyring.deb;     sh -c 'echo \"deb [signed-by=/usr/share/keyrings/debsuryorg-archive-keyring.gpg] https://packages.sury.org/php/ $(lsb_release -sc) main\" > /etc/apt/sources.list.d/php.list';         apt-get update;     apt-get install -y --no-install-recommends         libbz2-dev         libc-client-dev         libkrb5-dev         libsmbclient-dev     ;         docker-php-ext-configure imap --with-kerberos --with-imap-ssl;     docker-php-ext-install         bz2         imap     ;     pecl install smbclient;     docker-php-ext-enable smbclient;         apt-mark auto '.*' > /dev/null;     apt-mark manual $savedAptMark;     ldd \"$(php -r 'echo ini_get(\"extension_dir\");')\"/*.so         | awk '/=>/ { so = $(NF-1); if (index(so, \"/usr/local/\") == 1) { next }; gsub(\"^/(usr/)?\", \"\", so); print so }'         | sort -u         | xargs -r dpkg-query --search         | cut -d: -f1         | sort -u         | xargs -rt apt-mark manual;         rm -rf /var/lib/apt/lists/*" did not complete successfully: exit code: 100

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants