File tree Expand file tree Collapse file tree 5 files changed +20
-7
lines changed Expand file tree Collapse file tree 5 files changed +20
-7
lines changed Original file line number Diff line number Diff line change @@ -537,10 +537,11 @@ COPY --link --from=build-environment /bref-layer /opt
537
537
COPY --link src/php.ini /opt/bref/etc/php/conf.d/bref.ini
538
538
COPY --link src/php-fpm.conf /opt/bref/etc/php-fpm.conf
539
539
540
- COPY --link src/bootstrap.php /opt/bootstrap
540
+ COPY --link src/bootstrap.sh /opt/bootstrap
541
541
# Copy files to /var/runtime to support deploying as a Docker image
542
- COPY --link src/bootstrap.php /var/runtime/bootstrap
542
+ COPY --link src/bootstrap.sh /var/runtime/bootstrap
543
543
RUN chmod +x /opt/bootstrap && chmod +x /var/runtime/bootstrap
544
+ COPY --link src/bootstrap.php /opt/bref/bootstrap.php
544
545
545
546
546
547
# ----------------------------------------------------------------------------
Original file line number Diff line number Diff line change @@ -537,10 +537,11 @@ COPY --link --from=build-environment /bref-layer /opt
537
537
COPY --link src/php.ini /opt/bref/etc/php/conf.d/bref.ini
538
538
COPY --link src/php-fpm.conf /opt/bref/etc/php-fpm.conf
539
539
540
- COPY --link src/bootstrap.php /opt/bootstrap
540
+ COPY --link src/bootstrap.sh /opt/bootstrap
541
541
# Copy files to /var/runtime to support deploying as a Docker image
542
- COPY --link src/bootstrap.php /var/runtime/bootstrap
542
+ COPY --link src/bootstrap.sh /var/runtime/bootstrap
543
543
RUN chmod +x /opt/bootstrap && chmod +x /var/runtime/bootstrap
544
+ COPY --link src/bootstrap.php /opt/bref/bootstrap.php
544
545
545
546
546
547
# ----------------------------------------------------------------------------
Original file line number Diff line number Diff line change @@ -538,10 +538,11 @@ COPY --link --from=build-environment /bref-layer /opt
538
538
COPY --link src/php.ini /opt/bref/etc/php/conf.d/bref.ini
539
539
COPY --link src/php-fpm.conf /opt/bref/etc/php-fpm.conf
540
540
541
- COPY --link src/bootstrap.php /opt/bootstrap
541
+ COPY --link src/bootstrap.sh /opt/bootstrap
542
542
# Copy files to /var/runtime to support deploying as a Docker image
543
- COPY --link src/bootstrap.php /var/runtime/bootstrap
543
+ COPY --link src/bootstrap.sh /var/runtime/bootstrap
544
544
RUN chmod +x /opt/bootstrap && chmod +x /var/runtime/bootstrap
545
+ COPY --link src/bootstrap.php /opt/bref/bootstrap.php
545
546
546
547
547
548
# ----------------------------------------------------------------------------
Original file line number Diff line number Diff line change 1
- #!/usr/bin/env php
2
1
<?php declare (strict_types=1 );
3
2
4
3
$ appRoot = getenv ('LAMBDA_TASK_ROOT ' );
Original file line number Diff line number Diff line change
1
+ #! /bin/sh
2
+
3
+ # Fail on error
4
+ set -e
5
+
6
+ while true
7
+ do
8
+ # We redirect stderr to stdout so that everything
9
+ # written on the output ends up in Cloudwatch automatically
10
+ php " /opt/bref/bootstrap.php" 2>&1
11
+ done
You can’t perform that action at this time.
0 commit comments