# Dockerfile-x

Dockerfile-x is a Docker BuildKit frontend that extends the standard Dockerfile syntax with modular factorization, letting developers include other Dockerfiles and reference build stages across projects to compose. It is open source and self-hosted, installable on Docker Hub.

Canonical page: https://ourlocalhost.com/app/5450/dockerfile-x

## Description

Dockerfile-x is a Docker BuildKit frontend that extends the standard Dockerfile syntax with modular factorization, letting developers include other Dockerfiles and reference build stages across projects to compose container images from reusable parts.

## Platform availability

Available on 0 of 10 platforms.

## Health score

46/100 (Fair), based on 5 of 5 factors.
- Maintained: 52 (last commit 208 days ago)
- Popular: 36 (63 GitHub stars)
- Easy to install: 25 (0 install platforms, install notes, Docker image)
- Light to run: 40 (4 GB minimum RAM, runs on ARM)
- Security check: 70 (no serious findings, 11 minor, CI, tests)

## Links

- Official website: https://codeberg.org/devthefuture/dockerfile-x/
- Docker Hub: https://hub.docker.com/r/devthefuture/dockerfile-x
- GitHub: https://github.com/devthefuture-org/dockerfile-x

## Common questions

### How can I run dockerfile-x from the command line?

It is a standalone CLI tool that can be used with npx dockerfile-x. Use --help for further details.

### Does dockerfile-x need modifications when Dockerfile adds new keywords?

No. New additions to Dockerfile, including novel keywords, are inherently supported without modifying the library.

### Which shell option helps debug Dockerfile commands during execution?

Use set -x to make the shell print each command as it runs. This is useful for debugging.

### What should be installed if code cannot load the Dockerfile parser?

Install the parser package in your project folder with npm install dockerfile-ast. If this step is skipped, the code will fail to load the Dockerfile parser.

---
Source: Our Local Host (https://ourlocalhost.com/app/5450/dockerfile-x), the self-hosted and open-source app directory.
