Fix missing php exts, do not run migrate and seed

This commit is contained in:
Holger Lösken
2020-05-28 10:24:50 +02:00
parent c5fb1ab64b
commit 4e05229fed
2 changed files with 6 additions and 4 deletions

View File

@@ -42,14 +42,20 @@ RUN chmod +x /usr/local/bin/docker-entrypoint
RUN set -eux; \
apk add --no-cache \
freetype-dev \
gmp-dev \
libjpeg-turbo-dev \
libpng-dev \
libzip-dev; \
docker-php-ext-configure zip --with-libzip; \
docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ --with-png-dir=/usr/include/; \
docker-php-ext-install -j$(nproc) \
bcmath \
exif \
gd \
gmp \
mbstring \
mysqli \
opcache \
pdo \
pdo_mysql \

View File

@@ -45,10 +45,6 @@ fi
chown invoiceninja:www-data /var/www/app/storage
chown invoiceninja:www-data /var/www/app/public
# Database migrations and seeding
php artisan migrate --force
php artisan db:seed --force
php artisan optimize
exec docker-php-entrypoint "$@"