Skip to content

Commit 3027952

Browse files
committed
Fix the packaging of the console layer
1 parent c54ca3b commit 3027952

File tree

4 files changed

+3
-3
lines changed

4 files changed

+3
-3
lines changed

cpu-x86.Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ layers: docker-images
3939
docker-compose down
4040

4141
# The console layer (only built on x86) because it's not dependent on the CPU
42-
cd layers/console && zip ../../output/console.zip bootstrap.php
42+
cd layers/console && zip -r ../../output/console.zip bref
4343

4444

4545
# Upload the layers to AWS Lambda

layers/console/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@ RUN composer install --ignore-platform-req=ext-posix --ignore-platform-req=ext-s
1313
FROM bref/${CPU_PREFIX}php-$PHP_VERSION
1414

1515
# Overwrite the "function" bootstrap file
16-
COPY bootstrap.php /opt/bref/bootstrap.php
16+
COPY bref/bootstrap.php /opt/bref/bootstrap.php
1717

1818
COPY --from=composer /opt/bref/console-runtime /opt/bref/console-runtime

layers/console/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
The "console" layer is a layer that comes on top of the PHP runtime. It lets us execute console commands on lambda.
22

3-
This layer overrides the `bootstrap.php` to execute CLI console commands (e.g. Symfony Console or Laravel Artisan).
3+
This layer overrides the `/opt/bref/bootstrap.php` file to execute CLI console commands (e.g. Symfony Console or Laravel Artisan).
44

55
Read more at [bref.sh/docs/runtimes/console.html](https://bref.sh/docs/runtimes/console.html).
File renamed without changes.

0 commit comments

Comments
 (0)