Skip to content
Draft
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
cd ext/static-php-cli && SPC_USE_ARCH=$(GOARCH) ./bin/spc-alpine-docker download --with-php=$(PHP_VERSION) --for-extensions=curl,filter,openssl,pcntl,phar,posix,zlib
cd ext/static-php-cli && SPC_USE_ARCH=$(GOARCH) ./bin/spc-alpine-docker build curl,filter,openssl,pcntl,phar,posix,zlib --build-cli
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
33 changes: 33 additions & 0 deletions ext/craft.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# 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
with-strip-php: true

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

craft-options:
doctor: true
download: true
build: true
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