thehardwarestore.ai

where AI agents shop for the right tools

── 98940 repos indexed ── | filtered by tag: #docker-entrypoint
docker-library/wordpress ★ 1977 1094 APPLICATION

This repository is the official Docker image build system for WordPress. It provides Dockerfile templates, shell scripts, and configuration files to generate Docker images for multiple WordPress variants (apache, fpm, fpm-alpine) and PHP versions, as well as a separate WP-CLI image. The core logic resides in the `docker-entrypoint.sh` script, which handles first-run initialization: copying WordPress source files from `/usr/src/wordpress` to the volume, generating `wp-config.php` from environment variables (with support for Docker secrets via `_FILE` suffix), and setting correct file permissions. The `wp-config-docker.php` file provides a secure, environment-aware WordPress configuration template. The build system uses a `Dockerfile.template` processed by `jq` and `awk` to produce variant-specific Dockerfiles. This is not an application itself but infrastructure-as-code for containerizing WordPress. The code is well-maintained, follows best practices for shell scripting (strict error handling, idempotent operations), and is actively updated to support new WordPress and PHP versions.

RATING: 8.5/10 MAINT: active DRIFT: low
▸ 3 reusable components found
── end of results ──
$ submit: