I'm failing to run my webapp project in a fresh arch linux install. It uses docker and docker-compose.yaml to create DB, nginx server etc. This project is already running in multiple PCs and cloud environments (for a few years), so I'm wondering if maybe some new package is breaking the process of building the containers.
My dockerfile installs some packages using APK but it fails whenever I try to use node.js. Originally it had a RUN npm install command, and to be sure node was the problem I added a RUN node -v command right after installing node. Both commands fail with the same exact message:
=> ERROR [app 6/24] RUN node -v 0.2s ------ > [app 6/24] RUN node -v: 0.197 Error relocating /usr/bin/node: sqlite3session_attach: symbol not found 0.197 Error relocating /usr/bin/node: sqlite3changeset_apply: symbol not found 0.197 Error relocating /usr/bin/node: sqlite3session_create: symbol not found 0.197 Error relocating /usr/bin/node: sqlite3session_changeset: symbol not found 0.198 Error relocating /usr/bin/node: sqlite3session_patchset: symbol not found 0.198 Error relocating /usr/bin/node: sqlite3session_delete: symbol not found ------ failed to solve: process "/bin/sh -c node -v" did not complete successfully: exit code: 127 Node and npm are installed at the beginning of the file:
FROM php:8.2-fpm-alpine COPY composer.lock composer.json /var/www/html/ WORKDIR /var/www/html/ RUN apk update RUN apk add nodejs npm RUN node -v (...) How can I debug this situation? I tried docker compose up --build and multiple google searchs for this error message, but got no luck.