Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/shyim/php-cs-fixer-docker
Wolfi based very small PHP-CS-Fixer docker image
https://github.com/shyim/php-cs-fixer-docker
Last synced: 10 days ago
JSON representation
Wolfi based very small PHP-CS-Fixer docker image
- Host: GitHub
- URL: https://github.com/shyim/php-cs-fixer-docker
- Owner: shyim
- Created: 2023-12-24T20:06:49.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-05-06T15:05:27.000Z (7 months ago)
- Last Synced: 2024-10-12T09:16:17.650Z (about 1 month ago)
- Language: Dockerfile
- Homepage:
- Size: 28.3 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Small PHP-CS-Fixer Docker image
This image uses Wolfi-OS to create a very small PHP-CS-Fixer Docker image and still glibc, to be used in CI/CD pipelines.
- Official PHP-CS-Fixer image is 100MB and uses Alpine Linux (is musl and does sometimes work **different** than your local machine)
- This image is 41MB and uses Wolfi OS (is glibc and works the same as your regular local machine)## Usage
```bash
# or alternative use ghcr.io/shyim/php-cs-fixer:latest
docker run --rm -v $(pwd):$(pwd) -w $(pwd) shyim/php-cs-fixer:latest --rules @PER-CS2.0,@PER-CS2.0:risky --allow-risky=yes .
```If you don't want to pass the as arguments, you can create your regular `.php-cs-fixer.php` file and PHP-CS-Fixer will pick it up as usual.