Skip to content

Commit

Permalink
feat(frankenphp): Custom image
Browse files Browse the repository at this point in the history
  • Loading branch information
leocavalcante committed Jan 27, 2024
1 parent 788e59b commit b07e610
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,3 +54,11 @@ jobs:
push: true
build-args: PHP=${{ matrix.php }}
tags: opencodeco/phpctl:php${{ matrix.php }}
-
name: Build and push (FrankenPHP)
uses: docker/build-push-action@v5
with:
context: .
file: frankenphp.Dockerfile
push: true
tags: opencodeco/phpctl:frankenphp
2 changes: 2 additions & 0 deletions frankenphp.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
FROM dunglas/frankenphp
RUN install-php-extensions pcntl swoole
4 changes: 2 additions & 2 deletions src/frankenphp.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
frankenphp() {
if [ -z "$1" ]; then
PHPCTL_IMAGE=dunglas/frankenphp run -- frankenphp run --config /etc/caddy/Caddyfile --adapter caddyfile
PHPCTL_IMAGE=opencodeco/phpctl:frankenphp run -- frankenphp run --config /etc/caddy/Caddyfile --adapter caddyfile
else
PHPCTL_IMAGE=dunglas/frankenphp run -- frankenphp "$@"
PHPCTL_IMAGE=opencodeco/phpctl:frankenphp run -- frankenphp "$@"
fi
}

0 comments on commit b07e610

Please sign in to comment.