Compare commits

..
Author SHA1 Message Date
marc 630aab60db dumb entrypoint 2022-09-19 11:39:38 +02:00
2 changed files with 23 additions and 1 deletions
+5 -1
View File
@@ -1,5 +1,7 @@
FROM php:7.2-apache
RUN mkdir -p /home/numeris
# Install packages
RUN apt-get update && apt-get install -y \
git \
@@ -26,9 +28,11 @@ WORKDIR /home/numeris
RUN composer install --no-interaction
# Final touch
# RUN . ~/.bashrc
RUN . ~/.bashrc
RUN apt-get clean && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
RUN usermod -u 1000 www-data
RUN chown -R www-data:www-data /home/numeris
RUN chown -R www-data:www-data /var/log/apache2/
WORKDIR /home/numeris
+18
View File
@@ -0,0 +1,18 @@
#!/usr/bin/env bash
php artisan tinker
php artisan migrate:refresh --seed
php artisan migrate
php artisan migrate --force
php artisan migrate:refresh
php artisan migrate:rollback
php artisan db:seed
vendor/bin/phpunit
# less +G storage/logs/laravel.log
php artisan config:clear
php artisan cache:clear
php artisan route:clear
xhp artisan route:cache
php artisan config:cache
php artisan key:generate
php artisan jwt:secret