forked from manishkatyan/bbb-mp4
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
35 lines (28 loc) · 1.45 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Docker base
FROM ubuntu:bionic
# Create working directory
WORKDIR /usr/src/app
# Install curl and gnupg2 for source file modification
RUN apt-get -y update && apt-get -y install curl gnupg2 software-properties-common chromium-browser ca-certificates lsb-release \
alsa-utils alsa-oss pulseaudio pulseaudio-utils xvfb \
&& rm -rf /var/lib/apt/lists/* \
&& mkdir download
#Installing all other dependencies
RUN add-apt-repository ppa:jonathonf/ffmpeg-4 && curl -sL https://deb.nodesource.com/setup_14.x | bash && \
apt-get -y update && apt-get -y install libgbm-dev ffmpeg gconf-service libasound2 libatk1.0-0 libc6 libcairo2 \
libdbus-1-3 libexpat1 libfontconfig1 libgcc1 libgconf-2-4 nodejs \
libgdk-pixbuf2.0-0 libglib2.0-0 libgtk-3-0 libnspr4 libpango-1.0-0 \
libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 libxcomposite1 \
libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 \
libxtst6 fonts-liberation libappindicator1 libnss3 xdg-utils fonts-noto \
dbus-x11 libasound2 fluxbox libasound2-plugins \
&& rm -rf /var/lib/apt/lists/*
#copy all files from bbb-mp4 project
COPY *.sh *.js *.json ./
#Install npm scripts
RUN npm install npm@latest -g && npm install
#Initialize ENV
ENV REC_URL=" "
# Command that will execute when container starts
ENTRYPOINT ["sh","docker-entrypoint.sh"]
CMD node /usr/src/app/bbb-mp4.js $REC_URL