Docker / Linux

If you use alpine or slim version of node images, some errors may happen and you can fix with this minimal guide

For git missing error

# FROM ...
RUN apk add --no-cache git
# your scripts

For Alpine incompatible error

# your scripts
RUN ln -s /lib/libc.musl-x86_64.so.1 /lib/ld-linux-x86-64.so.2

# your commands
# CMD ["node", "server.js"]

For CentOS 7 glibc 2.18 not found error

First, please try

# FROM ...
RUN apk add --no-cache gcompat
# your scripts

or try

# FROM ...
RUN apk add --no-cache libc6-compat
RUN mv /lib64/ld-linux-x86-64.so.2 /lib
# your scripts

If these solutions didn't work, try solutions from here and here

Multi-thread / Cluster

Clustering is available on Linux, if your OS isn't Linux, you can try Docker as it works on Docker Linux container

Last updated