# Drupal 11 image with Drush + migrate modules for D7 migration testing
FROM drupal:11

# Install Drush and migrate modules (baked in so container is reproducible)
RUN composer config --no-plugins allow-plugins.symfony/runtime true \
    && composer require --no-interaction --with-all-dependencies \
    drupal/core-recommended:^11.4.5 \
    drupal/core-composer-scaffold:^11.4.5 \
    drupal/core-project-message:^11.4.5 \
    drush/drush \
    drupal/migrate_plus \
    drupal/migrate_tools \
    drupal/migrate_upgrade \
    drupal/smtp \
    drupal/views_aggregator \
    drupal/views_data_export \
    && composer clear-cache

# Custom moodul: parandab views_data_export rea renderdamise D11-s.
COPY custom_modules/mustikas_export /opt/drupal/web/modules/custom/mustikas_export

# Make drush available on PATH
ENV PATH="/opt/drupal/vendor/bin:${PATH}"
