Skip to content

Instantly share code, notes, and snippets.

@jdunwoody
Last active April 4, 2019 03:10
Show Gist options
  • Select an option

  • Save jdunwoody/b2911286215b9393cbe90f7d01710242 to your computer and use it in GitHub Desktop.

Select an option

Save jdunwoody/b2911286215b9393cbe90f7d01710242 to your computer and use it in GitHub Desktop.
service: myService
provider:
name: aws
runtime: python3.6
region: ap-southeast-2
memorySize: 1536
timeout: 30
package:
include:
- handler.py
- data/model.h5
- lib/**
exclude:
- ./**
functions:
prediction:
handler: handler.endpoint
environmentVariables:
LIBRARY_LIB_DIR: lib
plugins:
- serverless-python-requirements
custom:
pythonRequirements:
dockerizePip: non-linux
zip: true
slim: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment