tsirysndr / fluentdocker-deno

Generate dockerfiles from a simple declarative syntax in typescript and build them with ease πŸ‹ πŸš€ ✨

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Generate dockerfiles from a simple declarative syntax in typescript and build them with ease πŸ‹ πŸš€ ✨

License:MIT License


Languages

Language:TypeScript 96.5%Language:Nix 3.5%