Dockerfile question

Hi there,
Could someone explain how pipe works in this docker file for example →
https://hub.docker.com/layers/jenkins/inbound-agent/4.10-3-alpine/images/sha256-32de6179e6fea169f409f272284ceb523c50190660f45bd320a6f07d355aeec2?context=explore

In lines 8,9, 13, 19 for example RUN command starts with |5 or |2 I don’t get it.
Any explanation will be much appreciated!
Thanks

What you shared is not a Dockerfile.

The Dockerfile(s) responsible to build the image are:

and probably containers/Dockerfile.releases.full at main · adoptium/containers · GitHub

None of those Dockerfiles use pipes in the sense you refered to. There is nothing to get, this is just the build history, and those pipes and numbers are added by Buildkit. I have no idea what they mean, but it is nothing ment to be used in a Dockerfile.

2 Likes

Hi Metin,
Thanks for the reply. It was strange to me as well I have a case where the new inbound agent is missing curl, which I guess is normal.
Anyway thanks for your investigation!