mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-07-30 04:23:11 +03:00
Dev Docker: Fixed missing gd jpeg handling, forced migrations
Migrations run without force could fail startup in certain environment conditions (when testing production env). Also updated paths permission handling to update more needed locations.
This commit is contained in:
@ -6,15 +6,18 @@ RUN apt-get update && \
|
||||
git \
|
||||
zip \
|
||||
unzip \
|
||||
libpng-dev \
|
||||
libfreetype-dev \
|
||||
libjpeg62-turbo-dev \
|
||||
libldap2-dev \
|
||||
libpng-dev \
|
||||
libzip-dev \
|
||||
wait-for-it && \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Install PHP extensions
|
||||
RUN docker-php-ext-configure ldap --with-libdir="lib/$(gcc -dumpmachine)" && \
|
||||
docker-php-ext-install pdo_mysql gd ldap zip && \
|
||||
docker-php-ext-configure gd --with-freetype --with-jpeg && \
|
||||
docker-php-ext-install -j$(nproc) pdo_mysql gd ldap zip && \
|
||||
pecl install xdebug && \
|
||||
docker-php-ext-enable xdebug
|
||||
|
||||
|
@ -9,7 +9,7 @@ if [[ -n "$1" ]]; then
|
||||
else
|
||||
composer install
|
||||
wait-for-it db:3306 -t 45
|
||||
php artisan migrate --database=mysql
|
||||
chown -R www-data:www-data storage
|
||||
php artisan migrate --database=mysql --force
|
||||
chown -R www-data storage public/uploads bootstrap/cache
|
||||
exec apache2-foreground
|
||||
fi
|
||||
|
Reference in New Issue
Block a user