Docker¶
View image on GitHub Container Registry
Requirements¶
Basic usage¶
As an alternative to the usage with Composer, there’s also a ready-to-use Docker image:
# Docker Hub
docker run --rm -it -v <target-dir>:/app cpsit/project-builder
# GitHub Container Registry
docker run --rm -it -v <target-dir>:/app ghcr.io/cps-it/project-builder
Replace <target-dir> with an absolute or relative path to the directory
where to install and set up your new project. Make sure to always mount
the volume to /app.
Note
In the Docker entrypoint,
composer project:create is executed.
You can pass all available command parameters as Docker command (except
for target-directory, which is explicitly set to /app within the container).