This repo builds base Docker base images for WordPress.
The following variables can be only be configured at build.
| Build Arg | Description |
|---|---|
WORDPRESS_VERSION |
WordPress version |
PHP_VERSION |
PHP version |
PHP_EXTENSIONS |
Additional extensions to install (using mlocati/docker-php-extension-installer) |
FLAVOR |
Base image type. One of apache, fpm-alpine, or cli |
The following variables can be configured at build (Typically with an ARG in the Dockerfile) or during runtime (With environment variables).
| Build Arg | Description | Default |
|---|---|---|
PHP_MAX_EXECUTION_TIME |
See max_execution_time. |
30 |
PHP_MAX_INPUT_VARS |
See max_input_vars. |
1000 |
PHP_MEMORY_LIMIT |
See memory_limit. |
256M |
PHP_POST_MAX_SIZE |
See post_max_size. |
32M |
PHP_UPLOAD_MAX_FILESIZE |
See upload_max_filesize. |
8M |
PHP_MAX_FILE_UPLOADS |
See max_file_uploads. |
20 |
The blog_public option (Settings > Reading > "Discourage search engines from indexing this site")
can be forced via env so that dev sites are never accidentally indexed.
| Environment Variable | Description | Default |
|---|---|---|
WP_BLOG_PUBLIC |
Forces search engine visibility. false discourages indexing, true allows it. When unset, the setting is left editable in the admin. |
(unset) |