Hi everyone. I keep on getting the same error trying to create a container that uses different images.
In the php image, I’m using:
FROM --platform=linux/arm64 phpdockerio/php73-fpm:latest
The lines of the docker file are:
Install nodeJS
RUN curl -sL https://deb.nodesource.com/setup_16.x | bash -
Install selected extensions and other stuff
RUN export DEBIAN_FRONTEND=noninteractive &&
apt-get update && apt-get -y --no-install-recommends install
supervisor
cron
git
ssh
nano
zip
php7.3-mysql
php7.3-mbstring
php7.3-gd
php7.3-soap
php7.3-dev
php7.3-pdo
curl
php-pear
nodejs
apt-transport-https
&& apt-get clean; rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /usr/share/doc/*
RUN npm install -global yarn
When it gets to RUN npm install -global yarn, it exits with an error:
rpc error: code = Unknown desc = process "/bin/sh -c npm install -global yarn" did not complete successfully: exit code: 127
I cannot seem to find a workaround. Anyone with a similar problem?
Thanks!