You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Daniel Carrillo 839e83f0e1
Merge pull request #10 from dcarrillo/7.4.6
1 week ago
.github/workflows Bump version to 7.4.5 1 month ago
tests Add test for validate_timestamps parameter 2 months ago
.gitignore First commit 5 months ago
Dockerfile.template Fix github action 2 months ago
README.md Disable opcache validate timestamps 5 months ago
build.sh Fix github action 2 months ago
conf.env Bump PHP version to 7.4.6 1 week ago
opcache.ini Disable opcache validate timestamps 5 months ago

README.md

minimal php-fpm docker image

php-fpm docker image with production parameters and opcache module enabled.

Opcache parameters:

zend_extension=opcache
opcache.enable=1
opcache.memory_consumption=128
opcache.interned_strings_buffer=8
opcache.max_accelerated_files=4000
opcache.huge_code_pages=1
opcache.validate_timestamps=0
# This implies reset OPcache manually via opcache_reset(), opcache_invalidate()
# or by restarting php-fpm for changes to the filesystem to take effect.

Configuration

Edit conf.env

PHP_VERSION=x.x.x-fpm-alpine  # Official PHP image version to build from
DOCKER_IMAGE=dcarrillo/php    # Docker image

Build

Build locally:

./build.sh

Build locally and upload to a registry (you must be logged in to the registry)

./build.sh --push

Build locally, tag image as latest and upload to a registry (you must be logged in to the registry)

./build.sh --push --latest

Testing

# build local image
./build.sh

# run tests
./tests/test.sh