目前是否可以使用公共 ECR 映像来部署 lambda?我尝试创建公共 ECR 图像,但在 Web 界面中看到错误。我看到一个错误:“这是一个无效的 Elastic Container Registry Image URI”
Dockerfile:
FROM public.ecr.aws/lambda/nodejs:12
# Alternatively, you can pull the base image from Docker Hub: amazon/aws-lambda-nodejs:12
COPY app.js package.json /var/task/
# Install NPM dependencies for function
RUN npm install
# Set the CMD to your handler (could also be done as a parameter override outside of the Dockerfile)
CMD [ "app.handler" ]