forked from devsumo-s/ubuntu-desktop-on-heroku
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
65 lines (50 loc) · 2.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# ------------------------------------------------------------
# Start with Ubuntu Groovy Gorilla
# ------------------------------------------------------------
FROM ubuntu:20.10
# ------------------------------------------------------------
# Set environment variables
# ------------------------------------------------------------
ENV DEBIAN_FRONTEND=noninteractive
# ------------------------------------------------------------
# Set the sources
# ------------------------------------------------------------
RUN echo 'deb http://ubuntu.mirror.rain.co.za/ubuntu/ groovy main restricted universe multiverse\n'\
'deb http://ubuntu.mirror.rain.co.za/ubuntu/ groovy-security main restricted universe multiverse\n'\
'deb http://ubuntu.mirror.rain.co.za/ubuntu/ groovy-updates main restricted universe multiverse\n'\
'deb http://ubuntu.mirror.rain.co.za/ubuntu/ groovy-backports main restricted universe multiverse\n'\
'deb-src http://ubuntu.mirror.rain.co.za/ubuntu/ groovy main restricted universe multiverse\n'\
'deb-src http://ubuntu.mirror.rain.co.za/ubuntu/ groovy-security main restricted universe multiverse\n'\
'deb-src http://ubuntu.mirror.rain.co.za/ubuntu/ groovy-updates main restricted universe multiverse\n'\
'deb-src http://ubuntu.mirror.rain.co.za/ubuntu/ groovy-proposed main restricted universe multiverse\n'\
'deb-src http://ubuntu.mirror.rain.co.za/ubuntu/ groovy-backports main restricted universe multiverse\n'\
'' > /etc/apt/sources.list
# ------------------------------------------------------------
# Install and Configure
# ------------------------------------------------------------
RUN apt-get update && apt-get install -y --no-install-recommends \
dbus-x11 nano sudo bash net-tools \
novnc x11vnc xvfb \
zip unzip expect supervisor curl git wget g++ ssh terminator htop gnupg2 locales \
xfce4 ibus ibus-clutter ibus-gtk ibus-gtk3 \
gnome-shell ubuntu-gnome-desktop gnome-session gdm3 tasksel \
gnome-session gdm3 tasksel \
firefox
RUN apt-get autoclean
RUN apt-get autoremove
RUN dpkg-reconfigure locales
# ------------------------------------------------------------
# Add the Resources and Set Up the System
# ------------------------------------------------------------
COPY . /system
# @todo: Update the noVNC Web Page Resources to Support Legacy Browsers
# RUN unzip /system/resources/novnc.zip -d /system
# RUN rm -rf /usr/share/novnc
# RUN mv /system/novnc /usr/share/
RUN cp /usr/share/novnc/vnc_auto.html /usr/share/novnc/index.html
RUN sed "s|<title>noVNC</title>|<title>Ubuntu Desktop</title>|g" /usr/share/novnc/index.html > /usr/share/novnc/index-updated.html
RUN mv /usr/share/novnc/index-updated.html /usr/share/novnc/index.html
RUN cp /system/resources/favicon.ico /usr/share/novnc/favicon.ico
RUN chmod +x /system/conf.d/websockify.sh
RUN chmod +x /system/run.sh
CMD ["/system/run.sh"]