UNPKG

buildahcker

Version:

Buildahcker is a node.js library to create and run commands in OCI (Open Container Initiative) container images (or docker images), based on Buildah and a hash-based cache. It also contains utilities to easily create a partitioned bootable disk image of a

8 lines (7 loc) 408 B
import type { ContainerOptions } from "./container"; export interface FileInImage { imageId: string; file: string; } export declare const useFilesInImages: <T>(fn: (getFile: (file: FileInImage | string) => Promise<string>) => Promise<T>, containerOptions?: ContainerOptions) => Promise<T>; export declare const copyFileInImage: (inputFile: FileInImage | string, outputFile: string) => Promise<void>;