2021-08-24 13:58:22 +00:00
|
|
|
FROM ubuntu:16.04
|
|
|
|
|
|
|
|
RUN apt-get update
|
|
|
|
RUN apt-get -qq update
|
|
|
|
RUN apt-get install -y build-essential
|
|
|
|
RUN apt-get install -y curl
|
|
|
|
RUN apt-get install -y python-minimal
|
|
|
|
RUN curl -sL https://deb.nodesource.com/setup_8.x | bash
|
2021-10-08 14:26:37 +00:00
|
|
|
#needed for npm
|
2021-08-24 13:58:22 +00:00
|
|
|
RUN apt-get install -y nodejs
|
|
|
|
|
|
|
|
WORKDIR /simulator
|
|
|
|
ADD . /simulator
|
|
|
|
|
2021-10-08 14:26:37 +00:00
|
|
|
RUN rm package-lock.json && rm -rf node_modules && rm -rf ~/.node-gyp
|
|
|
|
|
|
|
|
|
2021-08-24 13:58:22 +00:00
|
|
|
RUN apt-get install -y libasound2-dev
|
|
|
|
RUN npm i -g node-gyp
|
|
|
|
RUN apt install -y alsa-base pulseaudio
|
2021-10-08 14:26:37 +00:00
|
|
|
RUN apt-get install -y avahi-utils
|
|
|
|
RUN apt-get install -y alsa-utils
|
|
|
|
# RUN modprobe snd_bcm2835
|
2021-08-24 13:58:22 +00:00
|
|
|
|
|
|
|
RUN npm install --unsafe-perm
|
2021-10-08 14:26:37 +00:00
|
|
|
RUN export "PULSE_SERVER=unix:/path/to/pulseaudio/socket"
|
2021-08-24 13:58:22 +00:00
|
|
|
|
|
|
|
# docker run -it -v /tmp/.X11-unix:/tmp/.X11-unix -e DISPLAY=unix$DISPLAY --device /dev/snd
|