<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Michael,</p>
<p>for your use case, you are only interested in the "builder"
image, not the "runner" one.</p>
<p>So just build it with something like: docker build . --target
builder -t whatever_tag_name_you_want</p>
<p>Even<br>
</p>
<div class="moz-cite-prefix">Le 19/02/2023 à 19:08, Michael Sumner a
écrit :<br>
</div>
<blockquote type="cite"
cite="mid:CAAcGz9_QWFavuJ=PhENLYxW_c1qRfPTNSa=wm3NS52ugj5q8cw@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">I would like to build GDAL in an image on the basis
of a dockerfile used for CI, I'm confused by the layer process
that copies the build outputs for the final steps
<div><br>
</div>
<div><a
href="https://github.com/OSGeo/gdal/blob/master/docker/ubuntu-small/Dockerfile#L231"
moz-do-not-send="true" class="moz-txt-link-freetext">https://github.com/OSGeo/gdal/blob/master/docker/ubuntu-small/Dockerfile#L231</a></div>
<div><br>
</div>
<div>I want to be able to run that image and then do my own
builds with cmake - but the layer COPY process doesn't include
cmake or the other prereqs used above (to save space in the
image). </div>
<div><br>
</div>
<div>Is it easy to include the build capability as a layer-copy
step? </div>
<div><br>
</div>
<div>Or is this perhaps a bad idea, I'm looking for the easiest
way to get a build system running with docker - I can unpick
the builder/COPY process, but maybe I'm missing something
easy. </div>
<div><br>
</div>
<div>Thank you</div>
<div>
<div><br>
</div>
-- <br>
<div dir="ltr" class="gmail_signature"
data-smartmail="gmail_signature">Michael Sumner<br>
Software and Database Engineer<br>
Australian Antarctic Division<br>
Hobart, Australia<br>
e-mail: <a href="mailto:mdsumner@gmail.com" target="_blank"
moz-do-not-send="true" class="moz-txt-link-freetext">mdsumner@gmail.com</a></div>
</div>
</div>
<br>
<fieldset class="moz-mime-attachment-header"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
gdal-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/gdal-dev">https://lists.osgeo.org/mailman/listinfo/gdal-dev</a>
</pre>
</blockquote>
<pre class="moz-signature" cols="72">--
<a class="moz-txt-link-freetext" href="http://www.spatialys.com">http://www.spatialys.com</a>
My software is free, but my time generally not.</pre>
</body>
</html>