Skip to content

Instantly share code, notes, and snippets.

@thanakijwanavit
Last active September 10, 2020 16:07
Show Gist options
  • Save thanakijwanavit/6fff1e002babb11a0e1204f392036cd2 to your computer and use it in GitHub Desktop.
Save thanakijwanavit/6fff1e002babb11a0e1204f392036cd2 to your computer and use it in GitHub Desktop.
creating a lambda layer package for python 3.8
#!/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