From db22a30626182e163df904c5153d050d6b7bbcb9 Mon Sep 17 00:00:00 2001 From: "Zak B. Elep" Date: Sat, 29 Jul 2017 10:24:13 +0800 Subject: [PATCH] Rephrase and try to be clearer regarding perl:onbuild Try to distinguish making the image for `perl:onbuild` and using as the base image for the project. --- perl/content.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/perl/content.md b/perl/content.md index f8a45deed..6790011c6 100644 --- a/perl/content.md +++ b/perl/content.md @@ -34,7 +34,7 @@ $ docker run -it --rm --name my-running-script -v "$PWD":/usr/src/myapp -w /usr/ ## Creating a reusable `perl:onbuild` image for Perl projects -Suppose you have a project that uses [Carton](https://metacpan.org/pod/Carton) to manage Perl dependencies. You can write a `Dockerfile` that makes use of the [ONBUILD](https://docs.docker.com/engine/reference/builder/#onbuild) instruction like this: +Suppose you have a project that uses [Carton](https://metacpan.org/pod/Carton) to manage Perl dependencies. You can create a `perl:onbuild` image that makes use of the [ONBUILD](https://docs.docker.com/engine/reference/builder/#onbuild) instruction in its `Dockerfile`, like this: ```dockerfile FROM perl:5.26 @@ -49,4 +49,4 @@ ONBUILD RUN carton install ONBUILD COPY . /usr/src/app ``` -Building this as a `perl:onbuild` image can let you reduce your project's `Dockerfile` into a single line of `FROM perl:onbuild`, which may be enough to build a stand-alone image for your project. +Then, in your project, you can now reduce your project's `Dockerfile` into a single line of `FROM perl:onbuild`, which may be enough to build a stand-alone image.