-
Notifications
You must be signed in to change notification settings - Fork 5
/
Dockerfile
43 lines (36 loc) · 1.81 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
36
37
38
39
40
41
42
43
FROM phusion/baseimage:18.04-1.0.0
MAINTAINER Dmitry Sandalov <[email protected]>
RUN apt-get update
RUN apt-get -y upgrade
RUN apt-get -y install \
fontconfig-config fonts-dejavu-core libasyncns0 libdrm-intel1 \
libdrm-nouveau2 libdrm-radeon1 libelf1 libflac8 libfontconfig1 libfreetype6 \
libgl1-mesa-dri libgl1-mesa-glx libglapi-mesa \
libgstreamer-plugins-base1.0-0 libgstreamer1.0-0 libice6 libllvm10 \
libogg0 liborc-0.4-0 libpciaccess0 libpulse0 libsm6 libsndfile1 \
libvorbis0a libvorbisenc2 libx11-6 libx11-data libx11-xcb1 \
libxau6 libxcb-dri2-0 libxcb-dri3-0 libxcb-glx0 libxcb-image0 \
libxcb-present0 libxcb-randr0 libxcb-shape0 libxcb-shm0 libxcb-sync1 \
libxcb-util1 libxcb-xfixes0 libxcb1 libxcomposite1 libxdamage1 libxdmcp6 \
libxext6 libxfixes3 libxi6 libxml2 libxrender1 libxshmfence1 libxslt1.1 \
libxxf86vm1 sgml-base x11-common xml-core curl desktop-file-utils \
libegl1-mesa libxcb-keysyms1 libxcb-xtest0 libnss3 libxcursor1 libasound2 \
libxtst6 ibus libxcb-xinerama0 libxkbcommon-x11-0 sudo
RUN curl -L https://zoom.us/client/latest/zoom_amd64.deb > /tmp/zoom.deb
RUN dpkg -i /tmp/zoom.deb && rm /tmp/zoom.deb
RUN rm -rf /var/lib/apt/lists/*
RUN export uid=1000 gid=1000 && \
mkdir -p /home/developer && \
mkdir -p /home/developer/.config && \
mkdir -p /home/developer/.zoom && \
echo "developer:x:${uid}:${gid}:Developer,,,:/home/developer:/bin/bash" >> /etc/passwd && \
echo "developer:x:${uid}:" >> /etc/group && \
echo "developer ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/developer && \
chmod 0440 /etc/sudoers.d/developer && \
chown ${uid}:${gid} -R /home/developer
USER developer
ENV HOME /home/developer
COPY conf/zoomus.conf /home/developer/.config/zoomus.conf
VOLUME ["/home/developer/.zoom"]
ADD ./bin /usr/local/sbin
CMD run