mirror of
https://github.com/dunglas/frankenphp.git
synced 2025-12-24 13:38:11 +08:00
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:
30
docs/docker.md
Normal file
30
docs/docker.md
Normal 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/)
|
||||
Reference in New Issue
Block a user