update readme

This commit is contained in:
2019-12-11 16:30:02 +07:00
parent e33aaf4bcc
commit 595854ac31

View File

@@ -1,15 +1,18 @@
### Docker images with php and composer inside ### Docker images with php and composer inside
#### Supported versions
* php 7.4.0
* php 7.3.10
* php 7.2.23
#### Build #### Build
To build container just use one of this commands:
```bash ```bash
make build-72 make build-72
```
or
```
make build-73 make build-73
make build-74
``` ```
#### Run #### Run
@@ -17,11 +20,7 @@ make build-73
After making image run After making image run
```bash ```bash
docker run -it --rm -v `pwd`:/var/www/project -w /var/www/project --user=1000 local-composer:7.2 sh docker run -it --rm -v `pwd`:/var/www/project -w /var/www/project --user=1000 local-composer:7.* sh
``` ```
or where replace `*` minor php version.
```bash
docker run -it --rm -v `pwd`:/var/www/project -w /var/www/project --user=1000 local-composer:7.3 sh
```