mirror of
https://github.com/dunglas/frankenphp.git
synced 2026-04-23 00:37:20 +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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user