Prompt flow (Part 2)

Docker

Docker

I used Prompt flow for Visual Studio Code to create and run a flow in a Docker container

I created a new flow

I created a standard flow

I accepted the default flow name

I manually added promptflow-tools to the requirements.txt file

I selected the flow and the Build menu item

I selected the Build as docker option

I selected the output folder

I clicked the Create Dockerfile link

I reviewed the generated Dockerfile

Dockerfile

I ran docker build

I opened Docker desktop, found the image and clicked the Run action

I mapped the Docker container's port 8080 to localhost 8080

The container started without issue

I tested the Prompt flow by navigating to localhost 8080.
Notice that in this case gunicorn is used to serve the prompt flow over http