ARM v7 & v8 don't run npm commands in DockerFiles

Hi there,
I am trying to build multi-arch images for my project for different architectures using dockerx on my windows machine.
For AMD64 and ARM64 everything works fine, but for some reason the building process of ARMv8 and ARMv7 gets stuck on any npm command I try to run in the dockerfile.
I already tried different approaches by changing npm configs through the dockerfile, but then the build gets stuck there…

I really am just lost, I really need the two other version to build successfully for my future work.

This is the basic Dockerfile config, I try to build:


FROM nodered/node-red:latest

# Change work dir

WORKDIR /usr/src/node-red

# Copy Configuration files

COPY ./node-red_settings.js .

COPY ./data/flows.json .

# Copy local Node modules

COPY ./local-nodes ./packages/local-nodes

RUN npm install ./packages/local-nodes

Thanks in advance.

Sorry, itt will be just a really quick reply for now. I remember similar issues here. Could you please search for npm related build issues?

https://forums.docker.com/search

It could be something either with the architetcure support in npm or something with the emulation which is done by qemu. Emulation is not always perfect unfotunately.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.