You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to decrease my Docker image size by cleaning the cache files after installing the requirements but the build fails due to a missing find command. This is my Dockerfile:
Hi @tlinhart! Good to see you here dude! I ran into this same issue like 1 hour ago and was trying to understand what's going on. Up until Python 3.11 Runtime, Lambda images are using Amazon Linux 2 which comes with the findutils package by default, but starting from Python 3.12 it is using Amazon Linux 2023 and it seems that the findutils package is not installed by default.
Python 3.11
➜ docker run --rm -it --entrypoint bash public.ecr.aws/lambda/python:3.11
WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requestedbash-4.2# rpm -qa | grep findfindutils-4.5.11-6.amzn2.x86_64bash-4.2#
To solve this problem you can install findutils package in your image, add this line RUN dnf install -y findutils before the pip install line and you'll be able to use the find command.
I'm trying to decrease my Docker image size by cleaning the cache files after installing the requirements but the build fails due to a missing
find
command. This is myDockerfile
:Looking inside the running container, it seems that other usual files are present in
/usr/bin
.The text was updated successfully, but these errors were encountered: