Files

Docker Example

A minimal container image that serves a workflow with WorkflowServer.

Files

File Purpose
app.py The workflow and WorkflowServer entrypoint.
Dockerfile Builds a slim Python image with the app and its dependencies.
requirements.txt Runtime dependencies installed into the image.

Running

docker build -t workflows-example examples/docker
docker run --rm -p 8000:8000 workflows-example

Then call it from the host:

curl -X POST http://localhost:8000/workflows/echo/run -d '{"start_event": {"message": "hi"}}'