【发布时间】:2021-02-24 06:26:41
【问题描述】:
在templates.yaml 中声明多个函数/应用程序时,通过 aws-sam 使用 docker 映像的 aws lambda 的 dockerfile 看起来如何?
这是运行“单个应用程序”的示例dockerfile
FROM public.ecr.aws/lambda/python:3.8
COPY app.py requirements.txt ./
RUN python3.8 -m pip install -r requirements.txt -t .
# Command can be overwritten by providing a different command in the template directly.
CMD ["app.lambda_handler"]
【问题讨论】:
标签: aws-lambda aws-sam aws-sam-cli