Skip to content
Closed
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
3 changes: 0 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -228,9 +228,6 @@ COPY --link src/php.ini /etc/php/conf.d/50-bref.ini
# Before PHP 8.5, opcache is a shared extension
RUN if [ "${PHP_VERSION}" -lt 85 ]; then echo 'zend_extension=opcache' > /etc/php/conf.d/10-opcache.ini; fi
COPY --link src/php-fpm.conf /etc/php/php-fpm.conf
# TODO remove once bref/bref v4 reads /etc/php/php-fpm.conf: Bref v3 starts php-fpm with /opt/bref/etc/php-fpm.conf
COPY --link src/php-fpm-v3-compat.sh /usr/local/bin/php-fpm
RUN chmod +x /usr/local/bin/php-fpm

COPY --link src/bootstrap.sh /var/runtime/bootstrap
RUN chmod +x /var/runtime/bootstrap
Expand Down
3 changes: 1 addition & 2 deletions src/bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
set -e

# Lambda does not apply the image's ENV to custom runtimes: set what PHP needs here.
# /usr/local/bin first: it holds the php-fpm wrapper for Bref v3, see php-fpm-v3-compat.sh
export PATH="/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin"
export PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
export LAMBDA_TASK_ROOT="${LAMBDA_TASK_ROOT:-/var/task}"
# The handler is passed as the first argument (Lambda container images get it from
# /lambda-entrypoint.sh, which sets _HANDLER)
Expand Down
13 changes: 0 additions & 13 deletions src/php-fpm-v3-compat.sh

This file was deleted.

2 changes: 1 addition & 1 deletion tests/composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"require": {
"bref/bref": "dev-master"
"bref/bref": "4.x-dev"
},
"config": {
"platform": {
Expand Down
Loading