{"repo":"devthefuture-org/dockerfile-x","free":true,"listed":false,"github":"https://github.com/devthefuture-org/dockerfile-x","clone":"git clone https://github.com/devthefuture-org/dockerfile-x.git","description":"Dockerfile factorization superset","language":"JavaScript","stars":61,"topics":["buildkit","dockerfile","include","template","factorization"],"license":"MIT","category":"deployment-docker-iac","readme_excerpt":"devthefuture/dockerfile-x: Dockerfile factorization superset dockerfile-x empowers developers with an extended syntax that allow modular factorization with ease. Getting Started: To enable dockerfile-x custom syntax, you can use native docker buildkit frontend feature by adding syntax comment to the beginning of your Dockerfile: That's it! then you can run buildkit as usual: note that you can also use docker compose or other tools that rely on docker buildkit. this will compile the final Dockerfile using devthefuture/dockerfile-x docker image, just before running the build Requirements We recommend using Docker 20.10 or later. However, if you're working with Docker versions as old as 18.09, you can still enable BuildKit. To do so, you'll need to set the following environment variables: DOCKER BUILDKIT=1 and COMPOSE DOCKER CLI BUILD=1 . Features: - INCLUDE: Incorporate content as is from other Dockerfiles or snippets. - INCLUDE ARGS: Converts a .env file into Dockerfile ARG instructions. - INCLUDE ENVS: Converts a .env file into Dockerfile ENV instructions. - INCLUDE LABELS: Converts a .env file into Dockerfile LABEL instructions. - FROM: - FROM with Relative Paths: Use other Dockerfiles as a base using relative paths. - FROM with Stages: Reference specific stages from other Dockerfiles. - FROM with Re-Alias: Rename specific stages from other Dockerfiles. - COPY --from: - COPY/ADD from Another Dockerfile: Transfer files from another Dockerfile. - COPY/ADD with Stages: Specify ","default_branch":null,"files":null,"tree":[],"storefront":"/r/devthefuture-org","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/devthefuture-org/dockerfile-x/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."}