1
0
Fork 0

Add Docker information (#9910)

pull/10826/head
Pen y Fan 2022-06-06 09:18:22 +01:00 committed by GitHub
parent 829fca0be1
commit 0fad6a07a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 23 additions and 0 deletions

View File

@ -160,6 +160,29 @@ C:\Users\username>composer -V
Composer version 2.0.12 2021-04-01 10:14:59 Composer version 2.0.12 2021-04-01 10:14:59
``` ```
## Docker Image
Composer is published as Docker container in a few places, see the list in the [composer/docker README](https://github.com/composer/docker).
Example usage:
```sh
docker pull composer/composer
docker run --rm -it -v "$(pwd):/app" composer/composer install
```
To add Composer to an existing **Dockerfile**:
```Dockerfile
COPY --from=composer/composer /usr/bin/composer /usr/bin/composer
```
Read the [image description](https://hub.docker.com/r/composer/composer) for further usage information.
**Note:** Docker specific issues should be filed [on the composer/docker repository](https://github.com/composer/docker/issues).
**Note:** You may also use `composer` instead of `composer/composer` as image name above. It is shorter and is a Docker official image but is not published directly by us and thus usually receives new releases with a delay of a few days.
## Using Composer ## Using Composer
Now that you've installed Composer, you are ready to use it! Head on over to the Now that you've installed Composer, you are ready to use it! Head on over to the