https://github.com/tsirysndr/fluentdocker-deno
Generate dockerfiles from a simple declarative syntax in typescript and build them with ease 🐋 🚀 ✨
https://github.com/tsirysndr/fluentdocker-deno
deno deno-module docker dockerfile typescript
Last synced: 3 months ago
JSON representation
Generate dockerfiles from a simple declarative syntax in typescript and build them with ease 🐋 🚀 ✨
- Host: GitHub
- URL: https://github.com/tsirysndr/fluentdocker-deno
- Owner: tsirysndr
- License: mit
- Created: 2023-06-27T15:49:24.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2024-02-29T21:45:41.000Z (over 1 year ago)
- Last Synced: 2025-03-25T18:40:23.510Z (4 months ago)
- Topics: deno, deno-module, docker, dockerfile, typescript
- Language: TypeScript
- Homepage:
- Size: 46.9 KB
- Stars: 6
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# FluentDocker
[](https://deno.land/x/fluentdocker)

[](https://codecov.io/gh/tsirysndr/fluentdocker-deno)This is a deno module for generating dockerfiles and building docker images easily.
## 🚀 Usage
```ts
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");
```