Hey, idk if this is useful or not for others but I...
# general
w
Hey, idk if this is useful or not for others but I’m using both
awslambda
and
google_cloud_function
targets and as the documentation predicted (https://www.pantsbuild.org/docs/awslambda-python) it is failing on MacOS. So I’ve created a little Dockerfile as a workaround for running
pants package
locally. I’ll share in a thread if you folks think it might be useful to put as an “example” on the Docs page.
Dockerfile.dockerfile
I build it normally with
docker build . -t linux-pyenv
and then use it with pants to package my lambdas >
Copy code
docker run --rm -it -v $(pwd):/app linux-pyenv bash -c "cd /app && ./pants package my_lambda::"
c
Thanks for sharing! ❤️
p