Skip to content

Latest commit

 

History

History
43 lines (31 loc) · 805 Bytes

File metadata and controls

43 lines (31 loc) · 805 Bytes

Docker PHP Image

It's my personal Docker PHP Image for the CI. Everything you need to test a Laravel application is on board. You can find the image on the docker hub: https://hub.docker.com/repository/docker/poldixd/php/general

Build locally

With Chromium

docker build \
  --build-arg INSTALL_CHROMIUM=true \
  -t poldixd/php:8.4-chromium \
  -f php/8.4/Dockerfile \
  .

Without Chromium

docker build \
  --build-arg INSTALL_CHROMIUM=false \
  -t poldixd/php:8.4 \
  -f php/8.4/Dockerfile \
  .

Use it in your .gitlab-ci.yml

test:
  stage: test
  image: poldixd/php:8.4
  script:
    - php vendor/bin/pest --coverage

Contributing

Feel free to create a pull request.

Credits