Planning to use pants to build docker images using...
# general
w
Planning to use pants to build docker images using pex as a "build environment" in a multi-stage build (we use python:3.10-slim + lambdaric). The images are deployed via aws cdk stacks.
Current thinking Is to just always invoke pants in the cdk app. Is there value in creating a aws cdk pants plugin instead? Not sure how the docker image targets could be inferred from cdk-construct code. Somehow addresses needs to be picked up.
e
Hopefully you've already found: https://pex.readthedocs.io/en/v2.1.94/recipes.html#pex-app-in-a-container If not, take a look!
👍 1
For the 1st part, not the CDK part.
✔️ 1
w
Yep!