Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions docs/en/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,15 @@ ddev launch
```

```bash [Docker]
# Using official PHP image
docker run -it --rm -v $(pwd):/app composer create-project \
--prefer-dist cakephp/app:~|cakeversion| my_app
# Using CakePHP's official image (ghcr.io/cakephp/cakephp), which bundles
# the extensions CakePHP needs (intl, pdo_mysql, etc.)
docker run -it --rm -v $(pwd):/app -w /app ghcr.io/cakephp/cakephp:|phpversion| sh -c \
"curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer \
&& composer create-project --prefer-dist cakephp/app:~|cakeversion| my_app"

cd my_app
docker run -it --rm -p 8765:8765 -v $(pwd):/app \
-w /app php:8.2-cli php bin/cake server -H 0.0.0.0
-w /app ghcr.io/cakephp/cakephp:|phpversion| php bin/cake.php server -H 0.0.0.0
```

:::
Expand Down
Loading