<div dir="ltr">Ah, awesome - thanks Even and Daniel, both very helpful. <div><br></div><div>Cheers, Mike</div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Feb 20, 2023 at 5:36 AM Even Rouault <<a href="mailto:even.rouault@spatialys.com">even.rouault@spatialys.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
  
    
  
  <div>
    <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>Le 19/02/2023 à 19:08, Michael Sumner a
      écrit :<br>
    </div>
    <blockquote type="cite">
      
      <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" target="_blank">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">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">mdsumner@gmail.com</a></div>
        </div>
      </div>
      <br>
      <fieldset></fieldset>
      <pre>_______________________________________________
gdal-dev mailing list
<a href="mailto:gdal-dev@lists.osgeo.org" target="_blank">gdal-dev@lists.osgeo.org</a>
<a href="https://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank">https://lists.osgeo.org/mailman/listinfo/gdal-dev</a>
</pre>
    </blockquote>
    <pre cols="72">-- 
<a href="http://www.spatialys.com" target="_blank">http://www.spatialys.com</a>
My software is free, but my time generally not.</pre>
  </div>

</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="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">mdsumner@gmail.com</a></div>