Dockerfile used for CI builds
Base image from devwithlando/php
Tags provided:
- dasginganinja/ci-build:latest
- dasginganinja/ci-build:8.2-apache-4
- dasginganinja/ci-build:8.1-apache-2
- dasginganinja/ci-build:8.0-apache-2
- dasginganinja/ci-build:7.4-apache-2
- dasginganinja/ci-build:7.3-apache-2
- dasginganinja/ci-build:7.2-apache-2
- dasginganinja/ci-build:7.1-apache-2
- dasginganinja/ci-build:7.0-apache-2
The latest version will always refer to the latest PHP variant.
To build an image, change into the appropriate folder, i.e. php7.3
and then run docker image build - < Dockerfile
.
- Change into the directory you want to run things in, i.e. php8.1
cd php8.2
- Build the image.
- Choose the appropriate tag from the list above and use that as the tag in your command
docker image build -t dasginganinja/ci-build:8.2-apache-4 .
- Run the image locally for testing
docker run -it dasginganinja/ci-build:8.2-apache-4 bash
- Push the updated image (ONCE YOU ARE SURE) to Docker Hub
docker image push dasginganinja/ci-build:8.2-apache-4
Note: You may need to docker login
and enter your Docker Hub credentials. :)
If you run into issues when building, set buildkit
to false
in the Docker config. You can edit this from within the Docker Settings panel. Restart afterwards and you can build as you normally would.
In your ~/.zshrc
add the following entry
export DOCKER_DEFAULT_PLATFORM=linux/amd64