Skip to content

Commit d60236c

Browse files
committed
fix: use COMPOSER_IGNORE_PLATFORM_REQS env var for builder tooling
The FrankenPHP builder's internal static-php-cli tooling requires iconv extension which isn't available in the build container. Using the COMPOSER_IGNORE_PLATFORM_REQS=1 environment variable affects all composer operations globally.
1 parent d7c5e43 commit d60236c

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

build/Dockerfile

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,9 @@ 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-
4138
# Build the static binary
39+
# COMPOSER_IGNORE_PLATFORM_REQS affects all composer operations including the builder's internal tooling
4240
RUN EMBED="${EMBED}" \
4341
PHP_EXTENSIONS="${PHP_EXTENSIONS}" \
44-
COMPOSER_FLAGS="${COMPOSER_FLAGS}" \
42+
COMPOSER_IGNORE_PLATFORM_REQS=1 \
4543
./build-static.sh

0 commit comments

Comments
 (0)