Start with this in a file called Dockerfile.in:
FROM debian:jessie
USE github.com/docker-library/php/7.0
RUN docker-php-ext-install bcmath
CMD ["/bin/bash"]
Run this tool:
$ docker run --rm -v $(pwd):/app tueftler/doget transform
> Running transform("Dockerfile.in" -> "Dockerfile") using .../.doget.yml
> Fetching github.com/docker-library/php/7.0: [#################] 85.95kB
Done
The resulting Dockerfile will now have the trait's contents in place of the USE instruction. You can pass it to Docker's build command now.
Content type
Image
Digest
Size
53 MB
Last updated
about 9 years ago
docker pull tueftler/doget