https://github.com/howtocodewell/composer
PHP Composer Docker Image
https://github.com/howtocodewell/composer
Last synced: 3 months ago
JSON representation
PHP Composer Docker Image
- Host: GitHub
- URL: https://github.com/howtocodewell/composer
- Owner: howToCodeWell
- Created: 2021-05-04T08:47:02.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2021-05-23T16:43:56.000Z (about 4 years ago)
- Last Synced: 2025-01-27T17:53:07.649Z (5 months 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'`