upd: Dockerfile
add pdo_sqlite and move asset-map compiling to this instead of install.php
This commit is contained in:
@@ -33,7 +33,8 @@ RUN docker-php-ext-install \
|
||||
xml \
|
||||
intl \
|
||||
pdo_mysql \
|
||||
pdo_pgsql
|
||||
pdo_pgsql \
|
||||
pdo_sqlite
|
||||
|
||||
RUN php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" && \
|
||||
php composer-setup.php --install-dir=/usr/local/bin --filename=composer && \
|
||||
@@ -65,6 +66,7 @@ RUN echo "/var/log/sermon-notes.log {
|
||||
}" > /etc/logrotate.d/sermon-notes
|
||||
|
||||
RUN COMPOSER_ALLOW_SUPERUSER=1 composer install --no-scripts --no-dev --optimize-autoloader
|
||||
RUN /usr/local/bin/php bin/console asset-map:compile
|
||||
RUN mkdir /data
|
||||
|
||||
RUN mkdir /var/www/html/var/cache
|
||||
@@ -75,5 +77,6 @@ RUN find /var/www/html -type d -exec chmod 755 '{}' \;
|
||||
RUN find /var/www/html -type f -exec chmod 644 '{}' \;
|
||||
RUN chmod 755 /data
|
||||
RUN chmod 644 /data/*
|
||||
RUN a2enmod rewrite setenvif headers
|
||||
|
||||
EXPOSE 80
|
||||
|
||||
Reference in New Issue
Block a user