Base php-fpm with nginx image for building legacy Roadiz and other PHP app sub-images.
384
Base php-fpm with nginx 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:
makecomposer update --no-devcomposer dumpautoload -o -a.dockerignoreCreate a Dockerfile in your Roadiz project root.
FROM roadiz/php56-nginx-alpine:latest
MAINTAINER Ambroise Maupate <[email protected]>
COPY . /var/www/html/
COPY samples/index.php.docker /var/www/html/web/index.php
COPY samples/preview.php.docker /var/www/html/web/preview.php
COPY samples/clear_cache.php.sample /var/www/html/web/clear_cache.php
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/GeneratedNodeSources
RUN chown -R www-data:www-data /var/www/html/
ENTRYPOINT exec /usr/bin/supervisord -n -c /etc/supervisord.conf
Content type
Image
Digest
sha256:defdf0db2…
Size
78.2 MB
Last updated
over 3 years ago
docker pull roadiz/php56-nginx-alpine