🐛 Fix PHP image base tags and Alpine repos 🐛
php / release-php (push) Failing after 1m39s
php-7 / release-php-7 (push) Failing after 1m40s
php-8 / release-php-8 (push) Failing after 1m42s

- .env.scripts: align latest base tag with PHP 8 FPM Alpine.
- .env.scripts.7: refresh generated configuration and select PHP 7 FPM Alpine.
- .env.scripts.8: refresh generated configuration and select PHP 8 FPM Alpine.
- Dockerfile: use PHP 8 FPM Alpine and derive Alpine repositories from the base release.
- README.md: N/A — no user-facing change.
This commit is contained in:
casjay committed 2026-11-22 16:08:33 -05:00
1 parent 64e46c2751
commit 05d198a1f1
4 files changed
+104 -65

No files matched your search

+7 -6
View File
@@ -25,7 +25,7 @@ ARG IMAGE_VERSION="latest"
ARG CONTAINER_VERSION="USE_DATE"
ARG PULL_URL="php"
ARG DISTRO_VERSION="${IMAGE_VERSION}"
ARG DISTRO_VERSION="8-fpm-alpine"
ARG BUILD_VERSION="${BUILD_DATE}"
FROM tianon/gosu:latest AS gosu
@@ -97,11 +97,13 @@ RUN echo "Initializing the system"; \
RUN echo "Creating and editing system files "; \
$SHELL_OPTS; \
ALPINE_VERSION="$(cut -d. -f1,2 /etc/alpine-release)"; \
[ -n "$ALPINE_VERSION" ] || { echo "Could not determine Alpine version" >&2; exit 1; }; \
[ "$ALPINE_VERSION" = "edge" ] || ALPINE_VERSION="v${ALPINE_VERSION}"; \
rm -Rf "/etc/apk/repositories"; \
[ "$DISTRO_VERSION" = "latest" ] && DISTRO_VERSION="edge";[ "$DISTRO_VERSION" = "edge" ] || DISTRO_VERSION="v${DISTRO_VERSION}"; \
echo "http://dl-cdn.alpinelinux.org/alpine/${DISTRO_VERSION}/main" >>"/etc/apk/repositories"; \
echo "http://dl-cdn.alpinelinux.org/alpine/${DISTRO_VERSION}/community" >>"/etc/apk/repositories"; \
if [ "${DISTRO_VERSION}" = "edge" ]; then echo "http://dl-cdn.alpinelinux.org/alpine/${DISTRO_VERSION}/testing" >>"/etc/apk/repositories";fi; \
echo "http://dl-cdn.alpinelinux.org/alpine/${ALPINE_VERSION}/main" >>"/etc/apk/repositories"; \
echo "http://dl-cdn.alpinelinux.org/alpine/${ALPINE_VERSION}/community" >>"/etc/apk/repositories"; \
if [ "${ALPINE_VERSION}" = "edge" ]; then echo "http://dl-cdn.alpinelinux.org/alpine/${ALPINE_VERSION}/testing" >>"/etc/apk/repositories";fi; \
apk update; apk upgrade --no-cache; \
if [ -f "/root/docker/setup/01-system.sh" ];then echo "Running the system script";/root/docker/setup/01-system.sh||{ echo "Failed to execute /root/docker/setup/01-system.sh" >&2 && exit 10; };echo "Done running the system script";fi; \
echo ""
@@ -267,4 +269,3 @@ STOPSIGNAL SIGRTMIN+3
ENTRYPOINT [ "tini", "-p", "SIGTERM","--", "/usr/local/bin/entrypoint.sh" ]
HEALTHCHECK --start-period=10m --interval=5m --timeout=15s CMD [ "/usr/local/bin/entrypoint.sh", "healthcheck" ]