Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
80 changes: 0 additions & 80 deletions Dockerfile.php

This file was deleted.

14 changes: 4 additions & 10 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -37,16 +37,10 @@ internal/legacy/archives/php_darwin_$(GOARCH):
rm -rf $(GOOS)

internal/legacy/archives/php_linux_$(GOARCH):
cp ext/extensions.txt ext/static-php-cli/docker
docker buildx build \
--build-arg GOARCH=$(GOARCH) \
--build-arg PHP_VERSION=$(PHP_VERSION) \
--build-arg USE_BACKUP_ADDRESS=yes \
--file=./Dockerfile.php \
--platform=linux/$(GOARCH) \
--output=type=local,dest=./internal/legacy/archives/ \
--progress=plain \
ext/static-php-cli/docker
mkdir -p internal/legacy/archives
cp ext/craft.yml ext/static-php-cli/craft.yml
cd ext/static-php-cli && SPC_USE_ARCH=$(GOARCH) ./bin/spc-alpine-docker craft craft.yml
cp ext/static-php-cli/buildroot/bin/php $(PHP_BINARY_PATH)

PHP_WINDOWS_REMOTE_FILENAME := "php-$(PHP_VERSION)-nts-Win32-vs16-x64.zip"
internal/legacy/archives/php_windows.zip:
Expand Down
32 changes: 32 additions & 0 deletions ext/craft.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# craft.yml configuration for building PHP CLI for Upsun CLI
# This file configures static-php-cli v2.7.5+ to build a minimal PHP binary

php-version: "8.2"

extensions:
- curl
- filter
- openssl
- pcntl
- phar
- posix
- zlib

libs: []

sapi:
- cli

build-options:
with-clean: false
with-suggested-libs: false
with-upx-pack: true

download-options:
prefer-pre-built: true
retry: 5

craft-options:
doctor: true # Check environment and automatically fix when possible.
download: true # Download source code (php-src and libraries).
build: true # Build the static PHP binary.
44 changes: 0 additions & 44 deletions ext/extensions.txt

This file was deleted.

2 changes: 1 addition & 1 deletion ext/static-php-cli
Submodule static-php-cli updated 591 files