Enable custom modules

This commit is contained in:
Philip Peterson 2026-05-01 04:18:57 -07:00
parent d6d5aa0419
commit 4ef1864ecd
2 changed files with 10 additions and 0 deletions

View file

@ -33,6 +33,9 @@ WORKDIR /var/www/html
# "repositories": [{"type": "path", "url": "../drupal/core", "options": {"symlink": false}}]
# then bump drupal/core-recommended to "11.x-dev@dev" and rebuild.
COPY composer.json ./
RUN composer config repositories.drupal composer https://packages.drupal.org/8
RUN composer install --no-dev --optimize-autoloader --no-interaction
# Overlay our site-specific files on top of the scaffolded web/

View file

@ -33,6 +33,13 @@ else
-y
echo "[entrypoint] Drupal installed."
echo "[entrypoint] Enabling modules..."
$DRUSH en -y views views_ui field_ui text options link datetime
$DRUSH en -y webform webform_ui
$DRUSH en -y symfony_mailer
echo "[entrypoint] Modules enabled."
if ls /var/www/html/config/sync/*.yml >/dev/null 2>&1; then
echo "[entrypoint] Importing configuration from sync dir..."
$DRUSH config:import -y