master/php-fpm/entrypoint.sh

31 lines
1.8 KiB
Bash
Executable File

#!/bin/sh
# ***********************************************************************************************************************************
# * ___, _ ____ , __ *
# * / | o | | (| \ /|/ \ | *
# * | | ,_ ,_ __, | | | | _ _ __, ,_ _|_ ,_ _ | __/ __ __, ,_ __| *
# * | | / | / | | | |_/ | |/ _| ||/ |/ \_/ | / | | | | / | |/ | \/ \_/ | / | / | *
# * \__/\_/ |_/ |_/|_/ \/ \_/|_/|__/ (/\___/ |__/|__/ \_/|_/ |_/|_/ \_/|_/ |_/|__/ |(__/\__/ \_/|_/ |_/\_/|_/ *
# * /| *
# * \| *
# * *
# ***********************************************************************************************************************************
# This file provides a set of instructions to run, when the container starts. It is anchored as the
# entrypoint in the Dockerfile.
# Florian Meissner, DL1MRV
# Install PHP composer dependencies. This is done every time, the container is (re-)started.
composer -d /var/www/html -n update
composer -d /var/www/html -n install --no-dev
# Generate translation files
# /generate_mo.sh
# Create log dir
mkdir -p -m 777 /var/www/html/logs
# Finally start PHP.
source /usr/local/bin/docker-php-entrypoint
php-fpm