Pip3 requirements txt
With Dockerfile the path to the Dockerfile that must be in the current folder (or a subfolder). This must be the full image name and tag to use, including the runtime specific tag if applicable.Īlternatively, you can define your Docker image in your own Dockerfile and add the following to your serverless.yml: custom: pythonRequirements: dockerFile. To utilize your own Docker container instead of the default, add the following to your serverless.yml: custom: pythonRequirements: dockerImage: :tag It dockerize only on non-linux environments. The dockerizePip option supports a special case in addition to booleans of 'non-linux' which makes To enable docker usage, add the following to your serverless.yml:Ĭustom: pythonRequirements: dockerizePip: true Supported on non-linux OSs via the use of Docker and the Cross compilingĬompiling non-pure-Python modules or fetching their manylinux wheels is If you're on a mac, check out these notes about using python installed by brew.
#Pip3 requirements txt how to#
That's all that's needed for basic use! The plugin will now bundle your pythonĭependencies specified in your requirements.txt or Pipfile when you run sls deploy.įor a more in depth introduction on how to use this plugin, check out This will automatically add the plugin to your project's package.json and the plugins section of its
#Pip3 requirements txt install#
Install sls plugin install -n serverless-python-requirements
Our engineers use artificial intelligence and machine learning to transform real-time data, software and algorithms into the future of finance, reimagined. We build our own products and release them with a speed and agility that allows us to get new customer experiences to market quickly. Capital One is all-in on the cloud and is a leader in the adoption of open source, RESTful APIs, microservices and containers. It's delivering best-in-class innovation so that its millions of customers can manage their finances with ease. Originally developed by Capital One, now maintained in scope of Serverless, IncĬapital One considers itself the bank a technology company would build. A Serverless Framework plugin to automatically bundle dependencies from requirements.txt and make them available in your PYTHONPATH.