Sign inSign up

cenode/privuma-php

By cenode

•Updated 8 months ago

Privuma's custom php container.

Image
0

1.7K

cenode/privuma-php repository overview

This image is based off of the php-fpm:7.4 bullseye image

It adds the following dependencies:

  • Python 3
  • Ffmpeg
  • ImageMagick
  • cron

The cron is configured to call the custom path for and php cli cron script you want to run. It runs the script every minute because the current use case lets php manage the state of which ones have run and which ones need to run. Checkout the Privuma repo for more details on how this is used. /var/www/html/cron.php is what is called with the php binary with cron's view which lacks permissions other than www-data and cannot see ENV variables.

The python, Ffmpeg, and ImageMagick are all used to run exec calls from the cron jobs from php.

I know this is not the cleanest of images and it is definitely not optimized or light weight and it likely breaks most of docker's single use container approach but I was going to need to have these dependencies available to a php cron somehow and so I just decided to create a custom php docker container with the extra dependencies ready. Maybe it will benefit someone else.

Tag summary

Content type

Image

Digest

sha256:81b9a8f91…

Size

764.3 MB

Last updated

8 months ago

docker pull cenode/privuma-php