diff --git a/Dockerfile b/Dockerfile index b41ff29..0454e68 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM ubuntu:xenial +FROM ubuntu:bionic LABEL maintainer="omar.trigui.tn@gmail.com" @@ -18,9 +18,10 @@ RUN apt-get update && \ apt-get --no-install-recommends install -yqq \ wget \ software-properties-common \ - curl + curl \ + gpg-agent -RUN add-apt-repository ppa:mc3man/xerus-media && \ +RUN add-apt-repository ppa:mc3man/bionic-prop && \ curl -sL https://deb.nodesource.com/setup_14.x | bash - && \ wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - && \ echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list @@ -42,7 +43,7 @@ RUN npm install && \ COPY . . -RUN apt-get purge curl -y && \ +RUN apt-get purge curl gpg-agent -y && \ apt-get clean -y && \ apt-get autoremove -y && \ rm -rf /var/lib/apt/lists/* diff --git a/main.js b/main.js index c63459b..f193db7 100644 --- a/main.js +++ b/main.js @@ -39,7 +39,7 @@ function getStartRecordingCommand () { `-s ${process.env.OUTPUT_VIDEO_WIDTH}x${process.env.OUTPUT_VIDEO_HEIGHT} ` + '-thread_queue_size 4096 ' + '-i :1 ' + - '-f pulse ' + + '-f alsa ' + '-i default ' + '-c:v libx264 ' + '-tune zerolatency ' +