Skip to content

Instantly share code, notes, and snippets.

@kunday
Created March 28, 2019 02:36
Show Gist options
  • Select an option

  • Save kunday/9ab48d1e1efbb118967be97fcc6db3cc to your computer and use it in GitHub Desktop.

Select an option

Save kunday/9ab48d1e1efbb118967be97fcc6db3cc to your computer and use it in GitHub Desktop.
Generate Artifact inside docker container
#!/usr/bin/env bash
set -ex
echo "Cleaning up old caches"
rm -rf /data/tmp/*
rm -rf /data/package/*.zip
echo "Installing Packages"
pip install newspaper3k --target /data/tmp
cp /data/lib/lambda_function.py /data/tmp/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment