I built the docker image with this command
docker buildx build --progress=plain --platform linux/amd64 -t revideo-render-project:latest .
it is created 3 images - of which one is of 0 kb size. I am facing below issues when trying other two.
when launching lambda with image using latest tag. Getting following error
The image manifest or layer media type for the source image 5857.dkr.ecr.us-east-1.amazonaws.com/revideo-render-project@sha256:8c7bec9686e26d01e300cdf9c8f2ef02ed7f5bc9826886d3d243154 is not supported.
However using another image (with no tag), I am able to crete lambda, but when I test with dummy event (made changes to lambda handler, so that it will not depend on the event). I am getting following error.
{ "errorType": "Runtime.InvalidEntrypoint", "errorMessage": "RequestId: 586c5b19-4611-4a2b-884d-882cbc086137 Error: fork/exec /lambda-entrypoint.sh: exec format error"
INIT_REPORT Init Duration: 1.71 ms Phase: init Status: error Error Type: Runtime.InvalidEntrypoint INIT_REPORT Init Duration: 0.59 ms Phase: invoke Status: error Error Type: Runtime.InvalidEntrypoint START RequestId: 586c5b19-4611-4a2b-884d-882cbc086137 Version: $LATEST RequestId: 586c5b19-4611-4a2b-884d-882cbc086137 Error: fork/exec /lambda-entrypoint.sh: exec format error Runtime.InvalidEntrypoint END RequestId: 586c5b19-4611-4a2b-884d-882cbc086137 REPORT RequestId: 586c5b19-4611-4a2b-884d-882cbc086137 Duration: 20.91 ms Billed Duration: 21 ms Memory Size: 128 MB Max Memory Used: 3 MB
This is my docker file (same from the given example).
FROM docker.io/revideo/aws-lambda-base-image:latest
COPY ./revideo-project/ ./
RUN npm install
RUN node node_modules/puppeteer/install.mjs
RUN npx tsc && cp dist/lambda.js ./
ENV ROLLUP_CACHE=/tmp/rollup_cache
ENV FFMPEG_PATH=/var/task/node_modules/@ffmpeg-installer/linux-x64/ffmpeg
ENV HOME=/tmp
ENV DONT_WRITE_TO_META_FILES=true
CMD ["lambda.handler"]
Please help me understanding what is the error. Thankyou.
I built the docker image with this command
docker buildx build --progress=plain --platform linux/amd64 -t revideo-render-project:latest .it is created 3 images - of which one is of 0 kb size. I am facing below issues when trying other two.
when launching lambda with image using latest tag. Getting following error
The image manifest or layer media type for the source image 5857.dkr.ecr.us-east-1.amazonaws.com/revideo-render-project@sha256:8c7bec9686e26d01e300cdf9c8f2ef02ed7f5bc9826886d3d243154 is not supported.However using another image (with no tag), I am able to crete lambda, but when I test with dummy event (made changes to lambda handler, so that it will not depend on the event). I am getting following error.
{ "errorType": "Runtime.InvalidEntrypoint", "errorMessage": "RequestId: 586c5b19-4611-4a2b-884d-882cbc086137 Error: fork/exec /lambda-entrypoint.sh: exec format error"INIT_REPORT Init Duration: 1.71 ms Phase: init Status: error Error Type: Runtime.InvalidEntrypoint INIT_REPORT Init Duration: 0.59 ms Phase: invoke Status: error Error Type: Runtime.InvalidEntrypoint START RequestId: 586c5b19-4611-4a2b-884d-882cbc086137 Version: $LATEST RequestId: 586c5b19-4611-4a2b-884d-882cbc086137 Error: fork/exec /lambda-entrypoint.sh: exec format error Runtime.InvalidEntrypoint END RequestId: 586c5b19-4611-4a2b-884d-882cbc086137 REPORT RequestId: 586c5b19-4611-4a2b-884d-882cbc086137 Duration: 20.91 ms Billed Duration: 21 ms Memory Size: 128 MB Max Memory Used: 3 MBThis is my docker file (same from the given example).
Please help me understanding what is the error. Thankyou.