- 최신
- 최다 투표
- 가장 많은 댓글
Dockerfile Syntax: ensure that your Dockerfile has the correct syntax. There is a missing backslash at the end of the RUN yum update -y line. Check your image tag Ensure that you are using a valid tag for the base image (public.ecr.aws/lambda/python:3.8). AWS Lambda periodically updates their base images, so make sure the tag is correct
FROM public.ecr.aws/lambda/python:3.8
RUN yum update -y \
&& python -m pip install --upgrade pip \
&& pip install -r requirements.txt \
&& yum -y install git \
&& curl https://packages.microsoft.com/config/rhel/6/prod.repo > /etc/yum.repos.d/mssql-release.repo \
&& ACCEPT_EULA=Y yum install -y msodbcsql17 \
&& ACCEPT_EULA=Y yum install -y mssql-tools \
&& yum install -y unixODBC-devel
COPY . .
CMD [ "app.lambda_handler" ]
Check CloudWatch Logs for the Lambda function for any error messages or logs that might provide insights into the issue and also ensure that you are using a recent version of the AWS CLI
aws --version
AWS Lambda has a maximum image size limit. Ensure that your Docker image size does not exceed this limit :- https://repost.aws/questions/QUPfIJnXi3RfOWTH3P24P9YA/what-is-the-maximum-size-for-a-lambda-docker-image
Hope it clarifies and if does I would appreciate answer to be accepted so that community can benefit for clarity, thanks ;)
관련 콘텐츠
- AWS 공식업데이트됨 일 년 전
- AWS 공식업데이트됨 2년 전
The backslash isnt missing, its just not been correctly formatted when pasting into the question. The RUN is on a new line and therefore the backslash isnt required