This could be due to Docker attempting to build the dependency from the code rather than using a prebuilt wheel binary. This happens with older versions of dependencies, and…
Posts for: #Containerization
Installing Scipy with Docker
Certain packages can be troublesome to install in a Docker container when they’re defined in a requirements.txt file, such as scipy. If you’re running into issues installing…
Including Assets from Parent Directories in Dockerized Lambda Functions with CDK
If you have a Docker based Lambda that is defined in some directory and there are assets that the Lambda needs in the parent directory, fromimageasset() takes directory and…
Addressing Docker No Space Left on Device Errors
When you build Docker assets with CDK, they are still built locally and aren’t removed when the process is complete. You may eventually hit this error: #8 29.62 ERROR: Could…
To Build a Lambda from a Dockerfile in CDK
To set up a Dockerfile for a Lambda function that relies on non-AWS base images, you have to include the Python package awslambdaric in your requirements and install it. Then,…