File tree Expand file tree Collapse file tree 3 files changed +11
-9
lines changed Expand file tree Collapse file tree 3 files changed +11
-9
lines changed Original file line number Diff line number Diff line change 11FROM php:7.0-apache
22
33ENV BOOKSTACK=BookStack \
4- BOOKSTACK_VERSION=0.15.0
4+ BOOKSTACK_VERSION=0.15.0 \
5+ BOOKSTACK_HOME="/var/www/bookstack"
56
67RUN apt-get update && apt-get install -y git zlib1g-dev libfreetype6-dev libjpeg62-turbo-dev libmcrypt-dev libpng12-dev wget libldap2-dev libtidy-dev \
78 && docker-php-ext-install pdo pdo_mysql mbstring zip tidy \
@@ -12,9 +13,9 @@ RUN apt-get update && apt-get install -y git zlib1g-dev libfreetype6-dev libjpeg
1213 && cd /var/www && curl -sS https://getcomposer.org/installer | php \
1314 && mv /var/www/composer.phar /usr/local/bin/composer \
1415 && wget https://github.com/ssddanbrown/BookStack/archive/v${BOOKSTACK_VERSION}.tar.gz -O ${BOOKSTACK}.tar.gz \
15- && tar -xf ${BOOKSTACK}.tar.gz && mv BookStack-${BOOKSTACK_VERSION} ${BOOKSTACK } && rm ${BOOKSTACK}.tar.gz \
16- && cd /var/www/BookStack && composer install \
17- && chown -R www-data:www-data /var/www/BookStack \
16+ && tar -xf ${BOOKSTACK}.tar.gz && mv BookStack-${BOOKSTACK_VERSION} ${BOOKSTACK_HOME } && rm ${BOOKSTACK}.tar.gz \
17+ && cd $BOOKSTACK_HOME && composer install \
18+ && chown -R www-data:www-data $BOOKSTACK_HOME \
1819 && apt-get -y autoremove \
1920 && apt-get clean \
2021 && rm -rf /var/lib/apt/lists/* /var/tmp/* /etc/apache2/sites-enabled/000-*.conf
@@ -24,6 +25,8 @@ RUN a2enmod rewrite
2425
2526COPY docker-entrypoint.sh /
2627
28+ WORKDIR $BOOKSTACK_HOME
29+
2730EXPOSE 80
2831
2932ENTRYPOINT ["/docker-entrypoint.sh" ]
Original file line number Diff line number Diff line change 11<VirtualHost *:80>
22 ServerName bookstack.dev
3- DocumentRoot "/var/www/BookStack /public/"
3+ DocumentRoot "/var/www/bookstack /public/"
44
5- <Directory "/var/www/BookStack /">
5+ <Directory "/var/www/bookstack /">
66 Options FollowSymLinks MultiViews
77 AllowOverride All
88 Require all granted
Original file line number Diff line number Diff line change @@ -103,12 +103,11 @@ else
103103 echoerr wait-for-db: timeout out after 15 seconds waiting for ${DB_HOST_NAME} :${DB_PORT}
104104fi
105105
106- cd /var/www/BookStack/ && php artisan key:generate && php artisan migrate --force
107106
108107
109108echo " Setting folder permissions for uploads"
110- chown -R www-data:www-data /var/www/BookStack/ public/uploads && chmod -R 775 /var/www/BookStack/ public/uploads
111- chown -R www-data:www-data /var/www/BookStack/ storage/uploads && chmod -R 775 /var/www/BookStack/ storage/uploads
109+ chown -R www-data:www-data public/uploads && chmod -R 775 public/uploads
110+ chown -R www-data:www-data storage/uploads && chmod -R 775 storage/uploads
112111
113112echo " Clear Cache..."
114113
You can’t perform that action at this time.
0 commit comments