<p></p>
<p>We have a similar issue here:<br>
<a href="https://github.com/mapdiscover/import-osm-service/blob/master/Dockerfile">https://github.com/mapdiscover/import-osm-service/blob/master/Dockerfile</a></p>
<p>In our case the image size is also very large. 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. There are also no official docs which libraries are needed to run the binary release once you built it. Maybe someone else might help?</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/pull/1427#issuecomment-798417588">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AA6353VFZULYBKLOI4CFHDTTDNV5FANCNFSM4ZB2J25A">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AA6353TNDDVDKY34KTDDZC3TDNV5FA5CNFSM4ZB2J25KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOF6LOFNA.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/pull/1427#issuecomment-798417588",
"url": "https://github.com/openstreetmap/osm2pgsql/pull/1427#issuecomment-798417588",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>