From e5d55c9fe84387620f853d1a3b6db998b505b382 Mon Sep 17 00:00:00 2001 From: TBK Date: Wed, 31 Jul 2019 16:12:48 +0200 Subject: [PATCH] Alter bootstrap/autoload.php to symlink ppm (laravel) is looking to bootstrap/autoload.php but BookStack is calling it bootstrap/init.php so a symbolic link is created as a workaround. --- app/Dockerfile | 6 +++--- docker-compose.yml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/Dockerfile b/app/Dockerfile index 117fb05..40c249a 100644 --- a/app/Dockerfile +++ b/app/Dockerfile @@ -67,13 +67,13 @@ RUN set -ex \ && curl -LJO https://github.com/BookStackApp/BookStack/archive/v${BOOKSTACK_VERSION}.tar.gz \ && tar --strip-components=1 -xzf BookStack-${BOOKSTACK_VERSION}.tar.gz \ && rm -rf ${BOOKSTACK}-${BOOKSTACK_VERSION}.tar.gz .env.example .gitattributes .github .gitignore .travis.yml tests/ public/index.php \ - && curl https://raw.githubusercontent.com/BookStackApp/BookStack/873b1099f81f6a9d2619644aef0587e2b73d918a/bootstrap/autoload.php -o bootstrap/autoload.php \ + && ln -s init.php bootstrap/autoload.php \ && echo "Get Dependencies:" \ && composer install \ && echo "Changing ownership:" \ - && chown -R www-data:www-data . \ + && chown www-data:www-data -R . \ && echo "Ensure Nginx got access to tmp folder:" \ - && chown www-data:root -R /var/lib/nginx/tmp + && chown www-data:www-data -R /var/lib/nginx/tmp WORKDIR $BOOKSTACK_HOME diff --git a/docker-compose.yml b/docker-compose.yml index 02a89d7..d118683 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -25,7 +25,7 @@ services: - backend app: - image: jjtc/bookstack-ppm:0.26.3-r0 + image: jjtc/bookstack-ppm:0.26.3-r3 build: ./app/ restart: unless-stopped depends_on: