From ff32ed102565a628dca8906e9d659cacb8043b28 Mon Sep 17 00:00:00 2001 From: Deon George Date: Thu, 24 Jun 2021 20:36:27 +1000 Subject: [PATCH] Changes to Docker to start server --- Dockerfile | 4 ++++ init-php.sh | 6 ++++++ 2 files changed, 10 insertions(+) create mode 100755 init-php.sh diff --git a/Dockerfile b/Dockerfile index fc176dc..a26acc1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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" ] diff --git a/init-php.sh b/init-php.sh new file mode 100755 index 0000000..43b12e5 --- /dev/null +++ b/init-php.sh @@ -0,0 +1,6 @@ +#!/bin/sh + +# Run our web init startup +/sbin/init php-fpm & + +exec ./artisan server:start