Last active
September 10, 2020 16:07
-
-
Save thanakijwanavit/6fff1e002babb11a0e1204f392036cd2 to your computer and use it in GitHub Desktop.
creating a lambda layer package for python 3.8
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| export PKG_DIR="python" | |
| rm -rf ${PKG_DIR} && mkdir -p ${PKG_DIR} | |
| docker run --rm -v $(pwd):/foo -w /foo lambci/lambda:build-python3.8 \ | |
| pip install -r requirements.txt --no-deps -t ${PKG_DIR} | |
| zip -r package.zip python |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment