-
Notifications
You must be signed in to change notification settings - Fork 7
/
Dockerfile
53 lines (41 loc) · 1.43 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
FROM ubuntu:18.04
LABEL maintainer="qgbcs"
ENV VNC_SCREEN_SIZE 1366x768
RUN sed -i 's/archive.ubuntu.com/mirrors.ustc.edu.cn/g' /etc/apt/sources.list && apt-get update \
&& apt-get install -y --no-install-recommends \
gdebi \
gnupg2 \
fonts-takao \
pulseaudio \
supervisor \
x11vnc \
fluxbox \
eterm \
fonts-arphic-ukai \
fonts-arphic-uming
COPY Yandex.deb /tmp/Yandex.deb
RUN gdebi --non-interactive /tmp/Yandex.deb
RUN apt-get install -y xvfb tmux htop vim lsof
COPY copyables /
RUN apt-get clean \
&& rm -rf /var/cache/* /var/log/apt/* /var/lib/apt/lists/* /tmp/* \
# && useradd -m -G chrome-remote-desktop,pulse-access chrome \
&& useradd -m -G pulse-access chrome \
&& usermod -s /bin/bash chrome \
&& ln -s /crdonly /usr/local/sbin/crdonly \
&& ln -s /update /usr/local/sbin/update \
&& mkdir -p /home/chrome/.config \
&& mkdir -p /home/chrome/.config/chrome-remote-desktop \
&& mkdir -p /home/chrome/.fluxbox \
&& echo ' \n\
session.screen0.toolbar.visible: true\n\
session.screen0.fullMaximization: false\n\
session.screen0.maxDisableResize: false\n\
session.screen0.maxDisableMove: false\n\
session.screen0.defaultDeco: NONE\n\
' >> /home/chrome/.fluxbox/init \
&& chown -R chrome:chrome /home/chrome/.config /home/chrome/.fluxbox
VOLUME ["/home/chrome"]
EXPOSE 5900
ENTRYPOINT ["/bin/bash", "/entrypoint.sh"]
CMD ["/usr/bin/supervisord", "-c", "/etc/supervisor/conf.d/supervisord.conf"]