feat: add Alpine based Docker image (#43)

* Gitignore .idea folder (PhpStorm etc)

* Alpine version of Dockerfile

* Bake definition to build Docker images

* Docs for Docker image building

* Link to docker.md

* Use latest change on using official php-src repo and PHP-8.2 branch

* Remove ARGS and get other changes from Dockerfile (original)

* Update GHA workflows with Dockerfile.alpine
This commit is contained in:
Marko Korhonen
2022-10-21 16:23:23 +03:00
committed by GitHub
parent 26edeb76e4
commit 4293397541
7 changed files with 210 additions and 4 deletions

30
docs/docker.md Normal file
View File

@@ -0,0 +1,30 @@
# Building Docker images
Print bake plan:
```
docker buildx bake -f docker-bake.hcl --print
```
Build FrankenPHP images for amd64 locally:
```
docker buildx bake -f docker-bake.hcl --pull --load --set "*.platform=linux/amd64"
```
Build FrankenPHP images for arm64 locally:
```
docker buildx bake -f docker-bake.hcl --pull --load --set "*.platform=linux/arm64"
```
Build FrankenPHP images from scratch for arm64 & amd64 and push to Docker Hub:
```
docker buildx bake -f docker-bake.hcl --pull --no-cache --push
```
## Resources
* [Bake file definition](https://docs.docker.com/build/customize/bake/file-definition/)
* [docker buildx build](https://docs.docker.com/engine/reference/commandline/buildx_build/)