- run
docker-compose up
. - confirm you get
PIL
andPillow-6.1.0.dist-info
directory next .yml file. - upload them as AWS Lambda Layer
Last active
September 3, 2019 01:57
-
-
Save umihico/16d1e8cd96b0bd1456138dd31fe1dd3c to your computer and use it in GitHub Desktop.
Download Python Pillow package for AWS lambda
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
version: '3' | |
services: | |
app: | |
image: amazonlinux:latest | |
volumes: | |
- './:/app' | |
command: sh -c "yum install python3 zip -y;mkdir -p /app/pillow_dist;pip3 install pillow -t /app/pillow_dist;cd /app/pillow_dist;zip -r /app/pillow.zip *" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment