Production Docker with Apache

This commit is contained in:
2023-02-14 18:41:47 -03:00
parent cce0a118b7
commit 45069dfc00
4 changed files with 35 additions and 0 deletions

13
install.sh Normal file
View File

@ -0,0 +1,13 @@
#!/bin/bash
apt-get update
apt-get -yq --no-install-recommends zip unzip libzip-dev
rm -r /var/lib/apt/lists/*
docker-php-ext-install zip
composer -d "${LOGVIEW_INSTALLATION_PATH}/app" install
mkdir "${LOGVIEW_INSTALLATION_PATH}/app/cache"
chmod -R 777 "${LOGVIEW_INSTALLATION_PATH}/app/cache"
sed -ri -e 's!/var/www/html!${APACHE_PUBLIC_ROOT}!g' /etc/apache2/sites-available/*.conf
sed -ri -e 's!/var/www/!${APACHE_DOCUMENT_ROOT}!g' /etc/apache2/apache2.conf /etc/apache2/conf-available/*.conf