Question

build.cmd for Deploying Python to Functions

When trying to deploy the sample python application “digitalocean/sample-functions-python-jokes” to Functions on a Windows workstation, doctl looking for a build.cmd. Is there a sample build.cmd to installation dependencies?


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Yes, You can use the sample below as it is in your build.cmd

virtualenv virtualenv

.\virtualenv\Scripts\bin\activate

pip install -r requirements.txt

deactivate