initial commit

This commit is contained in:
ale 2021-04-08 18:28:29 +02:00
commit fae3c30e0b
3 changed files with 59 additions and 0 deletions

18
Dockerfile Normal file
View File

@ -0,0 +1,18 @@
FROM node:12-buster-slim
RUN mkdir -p /usr/share/man/man1 /usr/share/man/man5 /usr/share/man/man7
RUN apt update && apt -y upgrade && apt -y install python xorg-dev libxshmfence1 \
build-essential clang libdbus-1-dev libgtk-3-dev \
libnotify-dev alsa-utils alsa-tools libasound2-plugins \
libasound2-dev libcap-dev libcups2-dev libxtst-dev \
libxss1 libnss3-dev gcc-multilib g++-multilib curl git \
gperf bison python-dbusmock default-jre xvfb && apt clean
RUN git clone https://github.com/jitsi/jitsi-meet-electron /jitsi-meet-electron
RUN adduser node audio && adduser node video && chown node.node -R /jitsi-meet-electron
WORKDIR /jitsi-meet-electron
USER node
RUN yarn
USER root
RUN chown root.root /jitsi-meet-electron/node_modules/electron/dist/chrome-sandbox
RUN chmod 4755 /jitsi-meet-electron/node_modules/electron/dist/chrome-sandbox
USER node
RUN yarn add jsonfile cli-truncate

13
README.md Normal file
View File

@ -0,0 +1,13 @@
# Jitsi-Desktop [jitsi-meet-electron](https://github.com/jitsi/jitsi-meet-electron) with Docker
### Usage
```
git clone https://git.manalejandro.com/ale/jitsi-desktop
cd jitsi-desktop
docker-compose up
```
### License
```
MIT
```

28
docker-compose.yml Normal file
View File

@ -0,0 +1,28 @@
version: '2'
services:
jitsi-meet-electron:
build: ./
image: jitsi-meet-electron
restart: always
hostname: jitsi-meet-electron
container_name: jitsi-meet-electron
entrypoint:
- yarn
- start
- --
- --no-sandbox
environment:
- DISPLAY=unix$DISPLAY
- PULSE_SERVER=unix:/run/user/1000/pulse/native
volumes:
- /tmp/.X11-unix:/tmp/.X11-unix:ro
- /run/user/1000/pulse:/run/user/1000/pulse
- /dev/shm:/dev/shm
- /run/dbus:/run/dbus
cap_add:
- IPC_LOCK
- SYS_ADMIN
devices:
- /dev/snd:/dev/snd
- /dev/video0:/dev/video0