FROM drupal:9.5.0-php8.1-apache-bullseye # RUN apk add --no-cache git RUN apt update; \ apt install -y --no-install-recommends git wget; \ rm -rf /var/lib/apt/lists/* RUN set -eux; \ rm -rf /opt/drupal/ WORKDIR /opt/drupal RUN set -eux; \ export COMPOSER_HOME="$(mktemp -d)"; \ wget https://gitlab.com/drutopia-platform/build_source/-/raw/master/composer.json; \ wget https://gitlab.com/drutopia-platform/build_source/-/raw/master/composer.lock; \ sed -i 's,git@\([^:]*\):,https://\1/,g' composer.json; \ sed -i 's,git@\([^:]*\):,https://\1/,g' composer.lock; \ composer install; \ rm -rf "$COMPOSER_HOME"; \ chown -R www-data:www-data web/sites web/modules web/themes WORKDIR /opt/drupal/web # composer create-project drutopia/drutopia_template:dev-master --no-interaction ./; \ # composer-pin-apply web/profiles/contrib/drutopia/bin/drutopia-tested-global-pinnings.sh; \