Skip to content

Instantly share code, notes, and snippets.

@richarddd
Last active July 1, 2020 13:27
Show Gist options
  • Save richarddd/933160fcdc3382821da7436098e5bde6 to your computer and use it in GitHub Desktop.
Save richarddd/933160fcdc3382821da7436098e5bde6 to your computer and use it in GitHub Desktop.
#!/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