Skip to content

Instantly share code, notes, and snippets.

@dhepper
Last active September 5, 2018 09:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dhepper/5df0eecbb22a26ef67b4752e1fe8a620 to your computer and use it in GitHub Desktop.
Save dhepper/5df0eecbb22a26ef67b4752e1fe8a620 to your computer and use it in GitHub Desktop.
One-line command to install requirements for an AWS lambda function
docker run -it --mount type=bind,source="$(pwd)",target=/build dacut/amazon-linux-python-3.6 bash -c "cd /build && pip3 install -r requirements.txt -t ./"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment