upd: Dockerfile

add pdo_sqlite and move asset-map compiling to this instead of install.php
This commit is contained in:
2026-03-26 18:30:36 -04:00
parent 2a22a3e027
commit 4a1777d160

View File

@@ -33,7 +33,8 @@ RUN docker-php-ext-install \
xml \ xml \
intl \ intl \
pdo_mysql \ pdo_mysql \
pdo_pgsql pdo_pgsql \
pdo_sqlite
RUN php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" && \ RUN php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" && \
php composer-setup.php --install-dir=/usr/local/bin --filename=composer && \ 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 }" > /etc/logrotate.d/sermon-notes
RUN COMPOSER_ALLOW_SUPERUSER=1 composer install --no-scripts --no-dev --optimize-autoloader 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 /data
RUN mkdir /var/www/html/var/cache 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 find /var/www/html -type f -exec chmod 644 '{}' \;
RUN chmod 755 /data RUN chmod 755 /data
RUN chmod 644 /data/* RUN chmod 644 /data/*
RUN a2enmod rewrite setenvif headers
EXPOSE 80 EXPOSE 80