Alpine-based Docker image that provides all the tools needed to run drupal-artifact-builder in CI pipelines or automated environments.
Includes:
- PHP (CLI) with a broad set of extensions: gd, intl, zip, pdo_mysql, pdo_pgsql, redis, apcu, imagick, bcmath, soap, ldap, and more
- Composer 2
- Node.js + npm/npx (for frontend asset compilation steps)
- Git with a default system identity (
artifact-builder@localhost)
Images are published to the GitHub Container Registry.
docker build -t drupal-artifact-builder-docker .Both are controlled via build arguments:
| Argument | Default |
|---|---|
PHP_VERSION |
8.3 |
NODE_VERSION |
20 |
docker build \
--build-arg PHP_VERSION=8.2 \
--build-arg NODE_VERSION=18 \
-t drupal-artifact-builder-docker:php82-node18 .Mount your Drupal project root at /app and run the builder:
docker run --rm \
-v "$(pwd)":/app \
-v ~/.ssh:/root/.ssh:ro \
drupal-artifact-builder-docker \
drupal-artifact-builder buildA .drupal-artifact-builder.yml file must exist in the project root. Copy it from the dist template:
cp vendor/metadrop/drupal-artifact-builder/.drupal-artifact-builder.yml.dist .drupal-artifact-builder.ymlUse this image as a base and layer in whatever your project needs:
FROM drupal-artifact-builder-docker:latest
RUN apk add --no-cache yarn