Hi Guys, i am facing error while installing meadiasoup in docker image following are the docker file setup which run perfectly on my linux system
FROM python:3.10.2-buster
RUN groupadd --gid 1000 pn && useradd --uid 1000 --gid pn --shell /bin/bash --create-home pn
ENV POETRY_HOME=/usr/local
RUN
echo “deb [Index of /node_16.x/](https://deb.nodesource.com/node_16.x) buster main” > /etc/apt/sources.list.d/nodesource.list &&
wget -qO- https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add - &&
echo “deb https://dl.yarnpkg.com/debian/ stable main” > /etc/apt/sources.list.d/yarn.list &&
wget -qO- https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - &&
apt-get update &&
apt-get install -yqq nodejs=$(apt-cache show nodejs|grep Version|grep nodesource|cut -c 10-) yarn &&
apt-mark hold nodejs &&
pip install -U pip && pip install pipenv &&
npm i -g npm@^8 &&
curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/install-poetry.py | python - &&
rm -rf /var/lib/apt/lists/*
WORKDIR /usr/src/app
COPY package*.json ./
RUN npm install
RUN mkdir -p /usr/src/app/logs
COPY . .
CMD [ “npm”, “run”,“dev”]
and error is
#10 20.02 npm ERR! Source dir: /usr/src/app/node_modules/mediasoup/worker
#10 20.02 npm ERR! Build dir: /usr/src/app/node_modules/mediasoup/worker/out/Release/build
#10 20.02 npm ERR! Build type: native build
#10 20.02 npm ERR! Project name: mediasoup-worker
#10 20.02 npm ERR! Project version: undefined
#10 20.02 npm ERR! C compiler for the host machine: cc (gcc 8.3.0 “cc (Debian 8.3.0-6) 8.3.0”)
#10 20.02 npm ERR! C linker for the host machine: cc ld.bfd 2.31.1
#10 20.02 npm ERR! C++ compiler for the host machine: c++ (gcc 8.3.0 “c++ (Debian 8.3.0-6) 8.3.0”)
#10 20.02 npm ERR! C++ linker for the host machine: c++ ld.bfd 2.31.1
#10 20.02 npm ERR! Host machine cpu family: aarch64
#10 20.02 npm ERR! Host machine cpu: aarch64
#10 20.02 npm ERR! Downloading openssl source from https://www.openssl.org/source/openssl-1.1.1l.tar.gz
#10 20.02 npm ERR! Download size: 9834044
#10 20.02 npm ERR! Downloading: …make: Leaving directory ‘/usr/src/app/node_modules/mediasoup/worker’
#10 20.02 npm ERR! Usage:
#10 20.02 npm ERR! /usr/local/bin/python3 -m pip install [options] [package-index-options] …
#10 20.02 npm ERR! /usr/local/bin/python3 -m pip install [options] -r [package-index-options] …
#10 20.02 npm ERR! /usr/local/bin/python3 -m pip install [options] [-e] …
#10 20.02 npm ERR! /usr/local/bin/python3 -m pip install [options] [-e] …
#10 20.02 npm ERR! /usr/local/bin/python3 -m pip install [options] <archive url/path> …
#10 20.02 npm ERR!
#10 20.02 npm ERR! no such option: --system
#10 20.02 npm ERR! WARNING: Running pip as the ‘root’ user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: [12. Virtual Environments and Packages — Python 3.10.4 documentation](https://pip.pypa.io/warnings/venv)
#10 20.02 npm ERR! WARNING: Running pip as the ‘root’ user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: [12. Virtual Environments and Packages — Python 3.10.4 documentation](https://pip.pypa.io/warnings/venv)
#10 20.02 npm ERR! Directory does not contain a valid build tree:
#10 20.02 npm ERR! /usr/src/app/node_modules/mediasoup/worker/out/Release/build
#10 20.02 npm ERR! Segmentation fault
#10 20.02 npm ERR! make: *** [Makefile:74: setup] Error 139
#10 20.02
#10 20.02 npm ERR! A complete log of this run can be found in:
#10 20.02 npm ERR! /root/.npm/_logs/2022-04-19T12_02_42_989Z-debug-0.log
executor failed running [/bin/sh -c npm install]: exit code: 1