forked from siomiz/chrome
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
61 lines (49 loc) · 1.57 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
FROM ubuntu:14.04
RUN apt-get update \
&& DEBIAN_FRONTEND=noninteractive \
apt-get install -y \
ca-certificates \
fonts-takao \
gconf-service \
gksu \
libappindicator1 \
libasound2 \
libcurl3 \
libgconf-2-4 \
libnspr4 \
libnss3 \
libpango1.0-0 \
pulseaudio \
python-psutil \
supervisor \
wget \
x11vnc \
xbase-clients \
xdg-utils \
xvfb \
iptables \
curl \
&& curl -L https://github.com/docker-infra/reefer/releases/download/v0.0.4/reefer.gz | \
gunzip >/usr/bin/reefer \
&& chmod a+x /usr/bin/reefer \
&& rm -rf /var/lib/apt/lists/*
ADD https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb /chrome.deb
ADD https://dl.google.com/linux/direct/chrome-remote-desktop_current_amd64.deb /crd.deb
RUN dpkg -i /chrome.deb && dpkg -i /crd.deb && rm /chrome.deb /crd.deb
RUN ln -s /lib/x86_64-linux-gnu/libudev.so.1 /lib/x86_64-linux-gnu/libudev.so.0
COPY supervisord.template.conf /etc/supervisor/conf.d/supervisord.template.conf
COPY supervisord-crdonly.conf /etc/supervisor/conf.d/supervisord-crdonly.conf
RUN addgroup chrome-remote-desktop && useradd -m -G chrome-remote-desktop,pulse-access chrome
ENV CHROME_REMOTE_DESKTOP_DEFAULT_DESKTOP_SIZES 1024x768
ADD crdonly /crdonly
RUN chmod +x /crdonly
ADD crd-session /crd-session
VOLUME ["/home/chrome"]
ENV CHROME_ARGS "" \
CHROME_URL ""
EXPOSE 5900
ENTRYPOINT [ "/usr/bin/reefer", \
"-t", "/etc/supervisor/conf.d/supervisord.template.conf:/etc/supervisor/conf.d/supervisord.conf", \
"-E", \
"/usr/bin/supervisord", "-c", "/etc/supervisor/conf.d/supervisord.conf" \
]