PHP extension helper for Docker image builds
3.0K
# Install a builtin (GD, opache, etc.)
f1-ext-install builtin:gd
# Install a PECL package
f1-ext-install pecl:memcached
# Install a PECL package at a specific version
f1-ext-install pecl:[email protected] # last supported version for PHP 5.6
# Install multiple packages at once (the recommended method)
f1-ext-install builtin:gd builtin:opcache pecl:memcached
# View help
f1-ext-install --help
By itself, this image is useless. It's meant to be COPYed into a PHP-based image:
FROM php:cli-alpine
COPY --from=forumone/f1-ext-install f1-ext-install /usr/bin
RUN f1-ext-install builtin:gd
This image is built from forumone/f1-ext-install on GitHub.
Content type
Image
Digest
Size
1.1 MB
Last updated
over 6 years ago
docker pull forumone/f1-ext-install