Skip to content

Commit 0a9cd90

Browse files
committed
Change deploy / publish instruction to *not* need a separate branch.
1 parent d00d7d0 commit 0a9cd90

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

docs/deploy.md

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,23 @@ They can be installed using:
8787
composer install --no-dev --no-interaction --no-plugins --no-scripts --prefer-dist
8888
```
8989

90-
to make sure the provided dependencies are usable in the supported PHP versions, a docker image can be used.
90+
to make sure the provided dependencies are usable in the supported PHP versions, the preferred method is to call composer using a docker image. The verbose, but complete command for this is:
91+
92+
```sh
93+
docker run \
94+
-it \
95+
--rm \
96+
--volume ~/.cache/composer/:/root/composer/ \
97+
--volume "${sourceDirectory}/solid:/app" \
98+
--workdir /app \
99+
php:8.0 \
100+
bash -c 'curl -s https://getcomposer.org/installer | php \
101+
&& mv composer.phar /usr/local/bin/composer \
102+
&& apt update \
103+
&& apt install -y git zip \
104+
&& COMPOSER_CACHE_DIR=/root/composer/ composer install --no-dev --no-interaction --no-plugins --no-scripts --prefer-dist \
105+
106+
```
91107
92108
### Creating a tarball
93109

0 commit comments

Comments
 (0)