Changes to Docker to start server

This commit is contained in:
Deon George 2021-06-24 20:36:27 +10:00
parent d1ca78d372
commit ff32ed1025
2 changed files with 10 additions and 0 deletions

View File

@ -7,4 +7,8 @@ RUN mkdir /var/www/.composer \
&& touch .composer.refresh \
&& mv .env.example .env \
&& FORCE_PERMS=1 /sbin/init \
&& chmod +x /var/www/html/artisan /var/www/html/init-php.sh \
&& touch .migrate \
&& rm -rf /var/www/.composer/*
ENTRYPOINT [ "/var/www/html/init-php.sh" ]

6
init-php.sh Executable file
View File

@ -0,0 +1,6 @@
#!/bin/sh
# Run our web init startup
/sbin/init php-fpm &
exec ./artisan server:start