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
+8 -2
View File
@@ -6,6 +6,9 @@ on:
jobs:
docker-tests:
runs-on: ubuntu-latest
strategy:
matrix:
dockerfile: [ "Dockerfile", "Dockerfile.alpine" ]
steps:
- uses: actions/checkout@v3
with:
@@ -21,7 +24,7 @@ jobs:
uses: docker/build-push-action@v3
with:
context: ./
file: Dockerfile
file: ${{ matrix.dockerfile }}
push: false
pull: true
target: builder
@@ -37,6 +40,9 @@ jobs:
docker run --rm frankenphp:${{ github.sha }}-builder "go test"
push-image:
runs-on: ubuntu-latest
strategy:
matrix:
dockerfile: [ "Dockerfile", "Dockerfile.alpine" ]
steps:
- uses: actions/checkout@v3
with:
@@ -72,7 +78,7 @@ jobs:
uses: docker/build-push-action@v3
with:
context: ./
file: Dockerfile
file: ${{ matrix.dockerfile }}
push: false
pull: true
target: final