dockerfile
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
<VirtualHost *:80>
|
||||
ServerAdmin webmaster@localhost
|
||||
DocumentRoot /var/www/html/public
|
||||
|
||||
<Directory /var/www/html/public>
|
||||
AllowOverride All
|
||||
Options FollowSymLinks
|
||||
Require all granted
|
||||
</Directory>
|
||||
|
||||
ErrorLog ${APACHE_LOG_DIR}/error.log
|
||||
CustomLog ${APACHE_LOG_DIR}/access.log combined
|
||||
</VirtualHost>
|
||||
@@ -0,0 +1,19 @@
|
||||
#!/usr/bin/env sh
|
||||
set -eu
|
||||
|
||||
mkdir -p storage/framework/cache/data storage/framework/sessions storage/framework/views bootstrap/cache
|
||||
chown -R www-data:www-data storage bootstrap/cache
|
||||
|
||||
if [ "${RUN_MIGRATIONS:-0}" = "1" ]; then
|
||||
php artisan migrate --force
|
||||
fi
|
||||
|
||||
if [ "${RUN_ADMIN_SEEDER:-0}" = "1" ]; then
|
||||
php artisan db:seed --class="Database\\Seeders\\AdminUserSeeder" --force
|
||||
fi
|
||||
|
||||
if [ "${RUN_OPTIMIZE:-0}" = "1" ]; then
|
||||
php artisan optimize
|
||||
fi
|
||||
|
||||
exec "$@"
|
||||
@@ -0,0 +1,7 @@
|
||||
opcache.enable=1
|
||||
opcache.enable_cli=0
|
||||
opcache.memory_consumption=128
|
||||
opcache.interned_strings_buffer=16
|
||||
opcache.max_accelerated_files=20000
|
||||
opcache.validate_timestamps=0
|
||||
opcache.revalidate_freq=0
|
||||
Reference in New Issue
Block a user