Last active
July 1, 2020 13:27
-
-
Save richarddd/933160fcdc3382821da7436098e5bde6 to your computer and use it in GitHub Desktop.
This file contains 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/sh | |
[ -f layer.zip ] && rm layer.zip | |
docker run --rm -v "$PWD":/tmp/layer lambci/yumda:2 bash -c " | |
yum install -y zip && \ | |
cd /lambda/opt && \ | |
rm -rf share/licenses && \ | |
zip -yr /tmp/layer/layer.zip . | |
" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment