logoalt Hacker News

nunezlast Saturday at 1:37 AM1 replyview on HN

You hit this real quick when trying to build container images from the scratch. Theoretically you can drop a Go binary into a blank rootfs and it will run. This works most of the time, but anything that depends on Go's Postgres client requires libpq which requires libc. Queue EFILE runtime errors after running the container.


Replies

nateb2022last Saturday at 2:16 AM

> anything that depends on Go's Postgres client requires libpq which requires libc

Try https://github.com/lib/pq

show 2 replies