Shared Runtime

A shared runtime allows you to reuse the same runtime environment across multiple workflows. This is useful when you have several workflows that depend on the same packages, as it helps reduce boilerplate code and prevents bloating your node_modules with duplicate dependencies across every workflow.

.
├── package.json
├── Dockerfile
├── workflow-1
   ├── floww.yaml
   └── main.ts
└── workflow-2
    ├── floww.yaml
    └── main.ts

Configuration

To enable shared runtime for your workflows, configure the build: section in your floww.yaml:

build:
  context: ..
  dockerfile: ../Dockerfile

This configuration tells Floww to use the Dockerfile located in the parent directory, allowing multiple workflows to share the same build context and runtime environment.

ON THIS PAGE