Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 30 days 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 (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-02-29T21:45:41.000Z (10 months ago)
- Last Synced: 2024-11-14T00:07:15.937Z (about 1 month 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
[![deno module](https://shield.deno.dev/x/fluentdocker)](https://deno.land/x/fluentdocker)
![deno compatibility](https://shield.deno.dev/deno/^1.34)
[![](https://img.shields.io/codecov/c/gh/tsirysndr/fluentdocker-deno)](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");
```