Skip to content

Instantly share code, notes, and snippets.

@mnapoli
Last active April 25, 2022 02:11
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save mnapoli/f911a50c7aab77690e6cdde157812265 to your computer and use it in GitHub Desktop.
Save mnapoli/f911a50c7aab77690e6cdde157812265 to your computer and use it in GitHub Desktop.
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" ]
service: demo
provider:
name: aws
ecr:
images:
myimage:
path: .
functions:
myfunction:
image: myimage
@towfiles
Copy link

towfiles commented Jun 22, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment