FluentDocker

deno module deno compatibility

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");