[Tile-serving] [openstreetmap/osm2pgsql] add support for dockerfile build (#1427)

Stephan notifications at github.com
Fri Mar 12 19:04:32 UTC 2021


osmtools/builder is available on docker hub. But I do not recommend to use it. This was just for "inspiration", so you get an idea on how I build it. It is an image I use to build multiple osm tools in a similar fashion than osm2pgsql. A docker built environment for osm2pgsql should stack on top of some maintained base image. Either alpine or debian/ubuntu, like you did.

The second section of the Dockerfile shows how to use files from the earlier stage. I only extract the binary.

I don't think that MinSizeRel will trigger any static linkage, but I have not checked. I also do not run the binary from within the "FROM scratch" container. That one is very empty and just holds the versioned artifact.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/osm2pgsql/pull/1427#issuecomment-797689526
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20210312/356fad5b/attachment.htm>


More information about the Tile-serving mailing list