Skip to content

Commit b07e610

Browse files
committed
feat(frankenphp): Custom image
1 parent 788e59b commit b07e610

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

.github/workflows/ci.yml

+8
Original file line numberDiff line numberDiff line change
@@ -54,3 +54,11 @@ jobs:
5454
push: true
5555
build-args: PHP=${{ matrix.php }}
5656
tags: opencodeco/phpctl:php${{ matrix.php }}
57+
-
58+
name: Build and push (FrankenPHP)
59+
uses: docker/build-push-action@v5
60+
with:
61+
context: .
62+
file: frankenphp.Dockerfile
63+
push: true
64+
tags: opencodeco/phpctl:frankenphp

frankenphp.Dockerfile

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
FROM dunglas/frankenphp
2+
RUN install-php-extensions pcntl swoole

src/frankenphp.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
frankenphp() {
22
if [ -z "$1" ]; then
3-
PHPCTL_IMAGE=dunglas/frankenphp run -- frankenphp run --config /etc/caddy/Caddyfile --adapter caddyfile
3+
PHPCTL_IMAGE=opencodeco/phpctl:frankenphp run -- frankenphp run --config /etc/caddy/Caddyfile --adapter caddyfile
44
else
5-
PHPCTL_IMAGE=dunglas/frankenphp run -- frankenphp "$@"
5+
PHPCTL_IMAGE=opencodeco/phpctl:frankenphp run -- frankenphp "$@"
66
fi
77
}

0 commit comments

Comments
 (0)