Last active
April 25, 2022 02:11
-
-
Save mnapoli/f911a50c7aab77690e6cdde157812265 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM bref/php-80-fpm | |
# Include any extension you want, for example: | |
#COPY --from=bref/extra-gd-php-73:0.9.5 /opt /opt | |
ADD . $LAMBDA_TASK_ROOT | |
CMD [ "index.php" ] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
service: demo | |
provider: | |
name: aws | |
ecr: | |
images: | |
myimage: | |
path: . | |
functions: | |
myfunction: | |
image: myimage |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
please update your blog which has the old command: https://mnapoli.fr/aws-lambda-php-docker-containers/
this cost me several hours trying to figure out what the issue was since the old command was never working
also note that you need to add:
COPY --from=composer:2 /usr/bin/composer /usr/bin/composer RUN composer require bref/bref RUN composer install
this was what worked for me