Dockerfile icon indicating copy to clipboard operation
Dockerfile copied to clipboard

recent update to Alpine Images breaks Node/NPM

Open ZARk-be opened this issue 11 months ago • 5 comments

Hello

All of a sudden our ci/cd stopped working.

FROM webdevops/php-nginx:8.3-alpine
RUN apk add --no-cache bash npm

with node clearly missing a lib

20 [stage-0 14/16] RUN npm install
#20 0.212 Error relocating /usr/bin/node: sqlite3session_attach: symbol not found
#20 0.212 Error relocating /usr/bin/node: sqlite3changeset_apply: symbol not found
#20 0.212 Error relocating /usr/bin/node: sqlite3session_create: symbol not found
#20 0.212 Error relocating /usr/bin/node: sqlite3session_changeset: symbol not found
#20 0.213 Error relocating /usr/bin/node: sqlite3session_patchset: symbol not found
#20 0.213 Error relocating /usr/bin/node: sqlite3session_delete: symbol not found

adding sqlite-dev packages fixed the issue. But i guess it should have been pulled automatically by node ?

ZARk-be avatar Feb 07 '25 09:02 ZARk-be

Jep, having the same problem.

rikkoiglu avatar Feb 10 '25 10:02 rikkoiglu

We're having the same issue exactly with the latest dev image.

rotem925 avatar Feb 10 '25 13:02 rotem925

same issue with FROM webdevops/php-nginx:8.1-alpine

DimaMinka avatar Feb 10 '25 13:02 DimaMinka

same issue with FROM webdevops/php-nginx-dev:8.1-alpine

mbu-redlink avatar Feb 12 '25 10:02 mbu-redlink

With the APK upgrade working well, we will use this solution for the moment.

RUN apk update && apk upgrade && apk add --no-cache nodejs

DimaMinka avatar Feb 12 '25 10:02 DimaMinka