HUB
Sign inSign up
php71-apache logo

roadiz/php71-apache

By roadiz

•Updated over 6 years ago

Base php-apache image for building Roadiz sub-images.

Image
1

483

roadiz/php71-apache repository overview

⁠roadiz/php71-apache

Base php-apache image for building Roadiz sub-images.

This image does not provide any tools like Composer or Yarn and it is meant to be extended for each of your projects. This image should be as light as possible to be built with your web site sources and vendor included.

Make sure to use a .dockerignore at your project root not to include any existing cache files or build-time vendors (node_modules).

Before building your project image make sure to:

  • make
  • composer update --no-dev
  • composer dumpautoload -o -a
  • Copy any configuration needed at launch
  • Add any development or user files paths to the .dockerignore

⁠Build example

Create a Dockerfile in your Roadiz project root.

FROM roadiz/php71-apache:latest
MAINTAINER Ambroise Maupate <[email protected]>

COPY . /var/www/html/
RUN chown -R www-data:www-data /var/www/html/
VOLUME /var/www/html/files /var/www/html/web/files /var/www/html/app/logs /var/www/html/app/conf /var/www/html/app/gen-src

⁠TODO

  • Install and launch cron to perform roadiz command periodically
  • Check Apache performances VS Nginx + fpm

Tag summary

Content type

Image

Digest

Size

170.5 MB

Last updated

over 6 years ago

docker pull roadiz/php71-apache