Quick and dirty docker container for testing disposable apps.
10K+
on-demand process manager)nobody)docker logs -f <container>)| Tag | PHP | Alpine |
|---|---|---|
lumaprints/dockerbase:php85-latest | 8.5 | 3.23 |
lumaprints/dockerbase:php84-latest | 8.4 | 3.23 |
lumaprints/dockerbase:php83-latest | 8.3 | 3.23 |
lumaprints/dockerbase:php82-latest | 8.2 | 3.22 |
lumaprints/dockerbase:php81-latest | 8.1 | 3.19 |
Use as a base image in your Dockerfile:
FROM lumaprints/dockerbase:php84-latest
A helper script is included that maps PHP versions to the correct Alpine version:
./build.sh 84 # Builds PHP 8.4 on Alpine 3.23
./build.sh 83 # Builds PHP 8.3 on Alpine 3.23
Or build directly with Docker:
docker build --build-arg PHP_VERSION=84 --build-arg ALPINE_VERSION=3.23 -t dockerbase:php84 .
Default configuration files live in config/. Override them by mounting your own:
Nginx:
docker run -v "$(pwd)/nginx.conf:/etc/nginx/nginx.conf" lumaprints/dockerbase:php84-latest
PHP:
docker run -v "$(pwd)/php.ini:/etc/php84/conf.d/custom.ini" lumaprints/dockerbase:php84-latest
PHP-FPM:
docker run -v "$(pwd)/fpm-pool.conf:/etc/php84/php-fpm.d/www.conf" lumaprints/dockerbase:php84-latest
The image includes supercronic for running cron jobs without root. The default crontab at /etc/crontab is empty.
Add cron entries in a derived image:
FROM lumaprints/dockerbase:php84-latest
COPY my-crontab /etc/crontab
Or mount at runtime:
docker run -v "$(pwd)/my-crontab:/etc/crontab" lumaprints/dockerbase:php84-latest
Example crontab:
* * * * * php /var/www/html/artisan schedule:run >> /dev/null 2>&1
COPY --from=composer /usr/bin/composer /usr/bin/composer
RUN composer install --optimize-autoloader --no-interaction --no-progress
Content type
Image
Digest
sha256:1f3436b7c…
Size
65.4 MB
Last updated
5 days ago
docker pull lumaprints/dockerbase:php84-latest