Skip to content

Cannot use node on Raspberry Pi Ubuntu #33244

@donfrigo

Description

@donfrigo

What steps will reproduce the bug?

I am trying to build a dockerfile on my Raspberry Pi 4, running arm64 Ubuntu. The same dockerfile runs fine on my main computer. The dockerfile is as follows:

FROM node:14 as builder WORKDIR /app COPY .client/package.json . COPY .package-lock.json . RUN npm install ... 

Upon building this file I get the following error:

Sending build context to Docker daemon 29.35MB Step 1/12 : FROM node:14 as builder ---> 70b24a2d7b95 Step 2/12 : WORKDIR /app ---> Using cache ---> 2ab48332f35b Step 3/12 : COPY .client/package.json . ---> Using cache ---> d7009f4cfa0b Step 4/12 : COPY .client/package-lock.json . ---> Using cache ---> 59d4f21519ed Step 5/12 : RUN npm install ---> Running in 84f62d84dcbe Aborted (core dumped) The command '/bin/sh -c npm install' returned a non-zero code: 134 

The error code of 134 refers to running out of memory on the host, but I have checked both memory and storage and there seems to be plenty of space left. What could be the issue? Thank you!

Additional information

If I run the base image manually and open a terminal, I get the following:

# node -v v14.1.0 # npm -v Aborted (core dumped) # node Aborted (core dumped) 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions