v0.2.0
Generate dockerfiles from a simple declarative syntax in typescript and build them with ease π π β¨
Attributes
Popular
Includes Deno configuration
Repository
Current version released
9 months ago
Versions
FluentDocker
This is a deno module for generating dockerfiles and building docker images easily.
π Usage
import { Dockerfile } from "https://deno.land/x/fluentdocker/mod.ts";
const image = new Dockerfile()
.from("node:18-alpine")
.run("apk update")
.expose(8080)
.cmd("npx --yes serve -s -l 8080");
const dockerfile = image.toString();
console.log(dockerfile);
image.build(".", "node-app-example");