Skip to content

Commit 8421a51

Browse files
Merge pull request #2066 from PeterDaveHello/UpdateREADME.md
docs: update shared libs section for Alpine 3.19+
2 parents 2680694 + 8559119 commit 8421a51

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

README.md

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -184,11 +184,19 @@ requirements. However, most software doesn't have an issue with this, so this
184184
variant is usually a very safe choice. See
185185
[this Hacker News comment thread](https://news.ycombinator.com/item?id=10782897)
186186
for more discussion of the issues that might arise and some pro/con comparisons
187-
of using Alpine-based images. One common issue that may arise is a missing shared
188-
library required for use of `process.dlopen`. To add the missing shared libraries
189-
to your image, adding the [`libc6-compat`](https://pkgs.alpinelinux.org/package/edge/main/x86/libc6-compat)
187+
of using Alpine-based images.
188+
189+
One common issue that may arise is a missing shared library required for use of
190+
`process.dlopen`. To add the missing shared libraries to your image:
191+
192+
- For Alpine v3.18 and earlier, adding the
193+
[`libc6-compat`](https://pkgs.alpinelinux.org/package/v3.18/main/x86/libc6-compat)
190194
package in your Dockerfile is recommended: `apk add --no-cache libc6-compat`
191195

196+
- Starting from Alpine v3.19, you can use the
197+
[`gcompat`](https://pkgs.alpinelinux.org/package/v3.19/main/x86/gcompat) package
198+
to add the missing shared libraries: `apk add --no-cache gcompat`
199+
192200
To minimize image size, it's uncommon for additional related tools
193201
(such as `git` or `bash`) to be included in Alpine-based images. Using this
194202
image as a base, add the things you need in your own Dockerfile

0 commit comments

Comments
 (0)