Changes to Docker to start server
This commit is contained in:
parent
d1ca78d372
commit
ff32ed1025
@ -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
6
init-php.sh
Executable file
@ -0,0 +1,6 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Run our web init startup
|
||||
/sbin/init php-fpm &
|
||||
|
||||
exec ./artisan server:start
|
Loading…
Reference in New Issue
Block a user