Base php-fpm with nginx image for building Roadiz sub-images
2.7K
Base php-fpm with nginx image for building Roadiz sub-images.
This base image is deprecated: we encourage to use roadiz/php81-fpm-alpine instead to build your Roadiz services with php-fpm, nginx, workers in separate containers.
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 Docker image make sure to prepare your project sources:
composer install -o.dockerignoreCreate a Dockerfile in your Roadiz project root.
FROM roadiz/php81-nginx-alpine:latest
MAINTAINER Ambroise Maupate <[email protected]>
ENV USER_UID=1000
ARG USER_UID=1000
ENV ROADIZ_ENV=prod
RUN usermod -u ${USER_UID} www-data \
&& groupmod -g ${USER_UID} www-data
COPY custom/location/crontab.txt /crontab.txt
COPY --chown=www-data:www-data . /var/www/html/
COPY --chown=www-data:www-data samples/index.php.sample /var/www/html/web/index.php
COPY --chown=www-data:www-data samples/preview.php.sample /var/www/html/web/preview.php
COPY --chown=www-data:www-data samples/clear_cache.php.sample /var/www/html/web/clear_cache.php
COPY custom/location/before_launch.sh /before_launch.sh
RUN /usr/bin/crontab -u www-data /crontab.txt && \
chmod +x /before_launch.sh
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 \
/var/www/html/app/gen-src/Proxies \
/var/www/html/app/gen-src/Compiled
ENTRYPOINT exec /usr/bin/supervisord -n -c /etc/supervisord.conf
Content type
Image
Digest
sha256:8122a55f8…
Size
332.7 MB
Last updated
about 1 month ago
docker pull roadiz/php81-nginx-alpine