Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/howtocodewell/composer
PHP Composer Docker Image
https://github.com/howtocodewell/composer
Last synced: about 1 month ago
JSON representation
PHP Composer Docker Image
- Host: GitHub
- URL: https://github.com/howtocodewell/composer
- Owner: howToCodeWell
- Created: 2021-05-04T08:47:02.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-05-23T16:43:56.000Z (over 3 years ago)
- Last Synced: 2023-03-03T15:03:35.789Z (almost 2 years ago)
- Language: Dockerfile
- Size: 3.91 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Composer - How To Code Well
This creates a Composer Docker image that has some PHP extensions configured.
Each Docker tag will follow PHP versions.See all available tags on the [Docker Hub](https://hub.docker.com/repository/docker/howtocodewell/composer/tags)
## To build locally
`docker build -t howtocodewell/composer: .`## To use this within your current project
Add this to your `docker-compose.yml````yaml
composer:
image: howtocodewell/composer:
working_dir: /var/www/html
volumes:
- .:/app
```# Useful commands
Pro tip! These are great in a MakefileCheck for Composer updates
`docker-compose run --rm -w /app --no-deps composer bash -ci 'composer update'`
Install Composer packages
`docker-compose run --rm -w /app --no-deps composer bash -ci 'composer install'`
Update Composer packages
`docker-compose run --rm -w /app --no-deps composer bash -ci 'composer update'`