
Security News
Meet Socket at Black Hat and DEF CON 2025 in Las Vegas
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
@neoskop/dockerfile.js
Advanced tools
Write configurable, scriptable, reusable dockerfiles in Typescript or plain Javascript.
Write configurable, scriptable, reusable dockerfiles in Typescript or plain Javascript.
dockerfile-js dockerfile.ts
Generates the dockerfile
dockerfile-js dockerfile.ts | docker build -f - .
Build a docker image from the generated dockerfile
import { dockerfile, stage, image, run } from "@neoskop/dockerfile.js";
export default dockerfile().stages(
stage().from(image('node'))
.commands(
run('node --version')
)
);
const { dockerfile, stage, image, run } = require("@neoskop/dockerfile.js");
module.exports = dockerfile().stages(
stage().from(image('node'))
.commands(
run('node --version')
)
);
Static, factory and async factory export possible.
export default dockerfile().stages(...);
export default () => dockerfile().stages(...);
export default async () => dockerfile().stages(...);
module.exports = dockerfile().stages(...);
module.exports = () => dockerfile().stages(...);
module.exports = async () => dockerfile().stages(...);
See Dockerfile Reference for general dockerfile usage. Documentation for dockerfile.js not yet available. Look at the sources for usage details.
Commands
Misc
This package uses Jest with the ts-jest extension for testing. The following test commands are available
yarn test
Single test run
yarn test:watch
Reruns the tests on file changes
yarn test:cov
Generates a coverage report
yarn test:debug
Start the test in debug mode
This package follows SemVer and uses @neoskop/flow-bump for versioning.
This project is licensed under the MIT License - see the LICENSE.md file for details
FAQs
Write configurable, scriptable, reusable dockerfiles in Typescript or plain Javascript.
The npm package @neoskop/dockerfile.js receives a total of 610 weekly downloads. As such, @neoskop/dockerfile.js popularity was classified as not popular.
We found that @neoskop/dockerfile.js demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 11 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
Security News
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.
Security News
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.