dibk/php-appservice

By dibk

Updated 20 days ago

Alpine-based image based on PHP 8.x and Nginx, packaged to run a PHP app as a Azure Web App.

Image
Integration & delivery
0

10K+

dibk/php-appservice repository overview

Meant as a base image for PHP apps, this image is best suited to use as a FROM tag in your own Dockerfile, ie:

FROM dibk/php-appservice 
ADD wwwroot --chown=www-data:www-data /var/www/html

Those two lines will build a complete web server, ready for running inside an Azure Web App. The image is set to use the web root /var/www/html. If the web app in question uses some other root location, for instance '/var/www/html/public' (Laravel), you can fix that by including this in your Dockerfile:

RUN sed -i 's|/html;|/html/public;|g' /etc/nginx/nginx.conf

Some features

  • Support for timezone via the env variable TZ. Default: Europe/Oslo
  • Support for locales via the env variable LC_ALL. Default: nb_NO.UTF-8
  • S6-overlay is installed. It makes it possible to add services on the image. Currently, PHP-FPM, nginx and openssh is running on it.

Tag summary

Content type

Image

Digest

sha256:9bed4bc94

Size

118.1 MB

Last updated

20 days ago

docker pull dibk/php-appservice