{"repo":"chainguard-dev/dfc","free":true,"listed":false,"github":"https://github.com/chainguard-dev/dfc","clone":"git clone https://github.com/chainguard-dev/dfc.git","description":"(D)ocker(F)ile (C)onverter: CLI to convert Dockerfiles to use Chainguard Images and APKs in FROM and RUN lines etc.","language":"Go","stars":101,"topics":["chainguard","cli","convert","converter","docker","dockerfile","dockerfiles","jq","json"],"license":"Apache-2.0","category":"cli-tools","readme_excerpt":"DFC d ocker f ile c onverter CLI to convert Dockerfiles to use Chainguard Images and APKs in FROM and RUN lines etc. --- About The dfc tool (DFC) helps you migrate your Dockerfiles to use Chainguard Images. For comprehensive guides on migration, check out: - Dockerfile Conversion Guide - Chainguard Migration Overview Installation You can install dfc from Homebrew: You can also install dfc from source: If that does not work, make sure the PATH environment variable is properly set: You can also use the dfc container image (from Docker Hub or cgr.dev ): Usage Convert Dockerfile and print converted contents to terminal: Save the output to new Dockerfile called Dockerfile.chainguard : You can also pipe from stdin: Convert the file in-place using --in-place / -i (saves backup in .bak file): Note: the Dockerfile and Dockerfile.chainguard in the root of this repo are not actually for building dfc , they are symlinks to files in the testdata/ folder so users can run the commands in this README. Examples For complete before and after examples, see the testdata/ folder. Convert a single FROM line Result: Convert a single RUN line Result: Convert a whole Dockerfile Result: Supported platforms dfc detects the package manager being used and maps this to a supported distro in order to properly convert RUN lines. The following platforms are recognized: OS Package manager ---------------------------- -------------------------- Alpine (\"alpine\") apk Debian/Ubuntu (\"debian\") apt-get / apt Fedor","default_branch":null,"files":null,"tree":[],"storefront":"/r/chainguard-dev","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/chainguard-dev/dfc/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}