A simple, lightweight container that uses S6 to manage processes under the covers.
50K+
This container is intended to run Laravel applications and thus comes with a few items to assist:
APP_ENV=production/var/www/html/publicThe laravel-* tag contains:
For a container to run cron, migrations or queue workers for Laravel applications, check out bkuhl/php
Why 2 processes in 1 container?
This container uses S6 Overlay as it's process monitoring solution. Add a new directory to services.d with a run file in it where run in a shell script that kicks off the process. The rest is taken care of for you.
FROM bkuhl/fpm-nginx:fpm-7_nginx-1
WORKDIR /var/www/html
# Copy the application files to the container
ADD --chown=www-data:www-data . /var/www/html
USER www-data
# production-ready dependencies
RUN composer install --no-interaction --optimize-autoloader --no-dev --prefer-dist \
# keep the container light weight
&& rm -rf /home/www-data/.composer/cache
USER root
Content type
Image
Digest
sha256:bbe11d74e…
Size
137.5 MB
Last updated
over 1 year ago
docker pull bkuhl/fpm-nginx