Last active
January 4, 2018 08:34
-
-
Save Cnly/49e91b636024c28c62c00fbd91297a9c to your computer and use it in GitHub Desktop.
Make deploy.zip for AWS Lambda
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
#! /usr/bin/env bash | |
rm -f deploy.zip | |
zip -9 -r deploy.zip . --exclude 'venv/*' '.*/*' '.*' '__pycache__/*' | |
cd venv/lib/python*/site-packages || exit 1 | |
zip -9 -r ../../../../deploy.zip * --exclude 'setuptools-*/*' 'setuptools/*' 'pip-*/*' 'pip/*' 'pkg_resources-*/*' 'pkg_resources/*' 'wheel-*/*' 'wheel/*' '__pycache__/*' '*-info/*' 'easy_install.py' | |
cd ../../../../ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment