I'm trying to run an electron app in docker. I have created the docker image successfully using the command "docker build. -t pi/electron-app-node16", when I try to run the docker image (docker run pi/electron-app-nod16) getting this error "/app/node_modules/electron/dist/electron exited with signal SIGTRAP"
DOCKERFILE
FROM node:16-bullseye
RUN apt-get update && apt-get install \
git libx11-xcb1 libxcb-dri3-0 libxtst6 libnss3 libatk-bridge2.0-0 libgtk-3-0 libxss1 libasound2 \
-yq --no-install-suggests --no-install-recommends \
&& apt-get clean && rm -rf /var/lib/apt/lists/*
RUN apt-get update && export DEBIAN_FRONTEND=noninteractive && apt-get -y install --no-install-recommends xorg openbox libnss3 libasound2 libatk-adaptor libgtk-3-0
RUN apt-get update
RUN apt-get -y install vim nano mlocate
WORKDIR /app
COPY . .
RUN chown -R node /app
USER node
RUN npm install
USER root
RUN chown root /app/node_modules/electron/dist/chrome-sandbox
RUN chmod 4755 /app/node_modules/electron/dist/chrome-sandbox
RUN apt-get update || : && apt-get install python3 -y
RUN apt-get -y install python3-pip
RUN pip install -r requirements.txt
USER node
CMD npm start