diff --git a/Dockerfile b/Dockerfile index 8c105a3..a19cdd2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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/ diff --git a/docker/php/entrypoint.sh b/docker/php/entrypoint.sh index e2d29ac..ce95336 100644 --- a/docker/php/entrypoint.sh +++ b/docker/php/entrypoint.sh @@ -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