<p></p>
<p>As part of the MapDiscover project we are planning to use osm2pgsql to create a POI database. The Lua integration is just perfect for this use case. Thanks for this one! MapDiscover consists of multiple services, each represented as a container image.</p>
<p>So we tried to build a container image using Docker + Dockerfile and the build instructions of the README.md. As mentioned in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="829875381" data-permission-text="Title is private" data-url="https://github.com/openstreetmap/osm2pgsql/issues/1427" data-hovercard-type="pull_request" data-hovercard-url="/openstreetmap/osm2pgsql/pull/1427/hovercard" href="https://github.com/openstreetmap/osm2pgsql/pull/1427">#1427</a> the image size is very large (unoptimized ~1,4 GB with debian-slim-buster). I tried to use multi-stage builds and so on, but only could get to 700 MB by manually (using try and error) removing several dependencies (still not sure if everything works):<br>
There are also no official docs which libraries are needed to run the binary release once you built it.</p>
<p>Today we got the first working docker image with several additions:</p>
<ul>
<li>Continuous replication support</li>
<li>LuaJIT support</li>
<li>Initial parsing of osm input</li>
<li>Usage of environment variables</li>
</ul>
<p>I am somehow used to Golang where you built an application and just put it in the container. Of course this doesn't work with C++ - I know. But I think having 700+ MB of dependencies for running an application seems just too much.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/openstreetmap/osm2pgsql/discussions/1428">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AA6353R5RPSEHDSZ4OK2QXLTDNZXNANCNFSM4ZD4AQLA">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AA6353T6DVBIGQV5563DOYDTDNZXNA5CNFSM4ZD4AQLKYY3PNVWWK3TUL52HS4DFVJCGS43DOVZXG2LPN2VGG33NNVSW45C7NFSM4ABR5HDQ.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/osm2pgsql/discussions/1428",
"url": "https://github.com/openstreetmap/osm2pgsql/discussions/1428",
"name": "View Discussion"
},
"description": "View this Discussion on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>