Files
computer-playbook/roles/web-app-mediawiki/files/Dockerfile
kevinveenbirkenbachandClaude Opus 4.8 2f5cf82533 test(lint): require apt Acquire::Retries in Dockerfiles
A transient Debian/Ubuntu mirror fetch aborts a docker build layer with exit 100 (it killed the web-app-nextcloud swarm openldap build while the same image built fine elsewhere). New lint under tests/lint/docker/dockerfile/apt/ flags any RUN with apt-get update/install that omits Acquire::Retries; retrofit all 15 apt Dockerfiles with -o Acquire::Retries=3. Both apt lints move into the apt/ subpackage. dnf retries by default and apk has no equivalent flag, so both stay out of scope.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-21 03:01:34 +02:00

18 lines
684 B
Docker

ARG MEDIAWIKI_IMAGE
ARG MEDIAWIKI_VERSION
FROM ${MEDIAWIKI_IMAGE}:${MEDIAWIKI_VERSION}
SHELL ["/bin/bash", "-lc"]
RUN set -euo pipefail \
&& export DEBIAN_FRONTEND=noninteractive \
&& rm -rf /var/lib/apt/lists/* \
&& apt-get -o Acquire::Retries=3 update -y \
&& apt-get -o Acquire::Retries=3 install -y --no-install-recommends ca-certificates curl git unzip \
&& update-ca-certificates \
&& curl --connect-timeout 5 --max-time 120 -fsSL https://getcomposer.org/installer -o /tmp/composer-setup.php \
&& php /tmp/composer-setup.php --install-dir=/usr/local/bin --filename=composer \
&& composer --version \
&& rm -f /tmp/composer-setup.php \
&& rm -rf /var/lib/apt/lists/*