Skip to content

Commit 28e0453

Browse files
committed
fix: add COMPOSER_FLAGS to ignore platform reqs in builder
The FrankenPHP static builder's internal tooling requires extensions that may not be available in the build container. Adding --ignore-platform-reqs allows the build to proceed.
1 parent 84ccd2a commit 28e0453

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

build/Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,11 @@ ENV EMBED="/go/src/app/dist/app/"
3535
# Skip Caddy modules we don't need for CLI-only usage
3636
ENV XCADDY_ARGS=""
3737

38+
# Ignore platform requirements for the builder's internal tooling
39+
ENV COMPOSER_FLAGS="--ignore-platform-reqs"
40+
3841
# Build the static binary
3942
RUN EMBED="${EMBED}" \
4043
PHP_EXTENSIONS="${PHP_EXTENSIONS}" \
44+
COMPOSER_FLAGS="${COMPOSER_FLAGS}" \
4145
./build-static.sh

0 commit comments

Comments
 (0)