eoeooe commited on
Commit
ba931b4
·
verified ·
1 Parent(s): f489261

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +80 -0
Dockerfile ADDED
@@ -0,0 +1,80 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM ubuntu:20.04 as ubuntu-base
2
+
3
+ ENV DEBIAN_FRONTEND=noninteractive \
4
+ DEBCONF_NONINTERACTIVE_SEEN=true
5
+
6
+ RUN apt-get -qqy update \
7
+ && apt-get -qqy --no-install-recommends install \
8
+ sudo \
9
+ supervisor \
10
+ xvfb x11vnc novnc websockify \
11
+ && apt-get autoclean \
12
+ && apt-get autoremove \
13
+ && rm -rf /var/lib/apt/lists/* /var/cache/apt/*
14
+
15
+ RUN cp /usr/share/novnc/vnc.html /usr/share/novnc/index.html
16
+
17
+ COPY scripts/* /opt/bin/
18
+
19
+ # Add Supervisor configuration file
20
+ COPY supervisord.conf /etc/supervisor/
21
+
22
+ # Relaxing permissions for other non-sudo environments
23
+ RUN mkdir -p /var/run/supervisor /var/log/supervisor \
24
+ && chmod -R 777 /opt/bin/ /var/run/supervisor /var/log/supervisor /etc/passwd \
25
+ && chgrp -R 0 /opt/bin/ /var/run/supervisor /var/log/supervisor \
26
+ && chmod -R g=u /opt/bin/ /var/run/supervisor /var/log/supervisor
27
+
28
+ # Creating base directory for Xvfb
29
+ RUN mkdir -p /tmp/.X11-unix && chmod 1777 /tmp/.X11-unix
30
+
31
+ CMD ["/opt/bin/entry_point.sh"]
32
+
33
+ #============================
34
+ # Utilities
35
+ #============================
36
+ FROM ubuntu-base as ubuntu-utilities
37
+ RUN apt-get update
38
+ RUN apt-get install ffmpeg -y
39
+ RUN apt-get -qqy update \
40
+ && apt-get -qqy --no-install-recommends install \
41
+ firefox htop terminator gnupg2 software-properties-common \
42
+ && wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb \
43
+ && apt install -qqy --no-install-recommends ./google-chrome-stable_current_amd64.deb \
44
+ && apt-add-repository ppa:remmina-ppa-team/remmina-next \
45
+ && apt update \
46
+ && apt install -qqy --no-install-recommends remmina remmina-plugin-rdp remmina-plugin-secret \
47
+ && apt-add-repository ppa:obsproject/obs-studio \
48
+ && apt update \
49
+ && apt install -qqy --no-install-recommends obs-studio \
50
+ && apt install unzip \
51
+ && apt-get autoclean \
52
+ && apt-get autoremove \
53
+ && rm -rf /var/lib/apt/lists/* /var/cache/apt/*
54
+
55
+ # COPY conf.d/* /etc/supervisor/conf.d/
56
+
57
+
58
+ #============================
59
+ # GUI
60
+ #============================
61
+ FROM ubuntu-utilities as ubuntu-ui
62
+
63
+ ENV SCREEN_WIDTH=1280 \
64
+ SCREEN_HEIGHT=720 \
65
+ SCREEN_DEPTH=24 \
66
+ SCREEN_DPI=96 \
67
+ DISPLAY=:99 \
68
+ DISPLAY_NUM=99 \
69
+ UI_COMMAND=/usr/bin/startxfce4
70
+
71
+ # RUN apt-get update -qqy \
72
+ # && apt-get -qqy install \
73
+ # xserver-xorg xserver-xorg-video-fbdev xinit pciutils xinput xfonts-100dpi xfonts-75dpi xfonts-scalable kde-plasma-desktop
74
+
75
+ RUN apt-get update -qqy \
76
+ && apt-get -qqy install --no-install-recommends \
77
+ dbus-x11 xfce4 \
78
+ && apt-get autoclean \
79
+ && apt-get autoremove \
80
+ && rm -rf /var/lib/apt/lists/* /var/cache/apt/*