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
Answer a question...

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.

LittleLightSeaGreenRaft
DigitalOcean Employee
DigitalOcean Employee badge
July 13, 2022

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