Custom Runtimes
Custom runtimes allow for installing arbitrary packages and dependencies in the runtime of your workflow. Runtimes in floww are built on top of Docker images so they are fully customizable.
How to use
To use a custom runtime, you will have to create a Dockerfile that installs the dependencies you need.
FROM ghcr.io/usefloww/lambda-runtime
COPY package.json /app/package.json
RUN npm install
When running npx floww deploy, the Dockerfile will automatically be built and used for the deployment.
📝
Only include your dependencies (package.json) in the runtime, not your workflow code. Your workflow code is dynamically evaluated at runtime and should not be copied into the Docker image.
📝
The Dockerfile will be used when deploying the workflow but not when running floww locally.