-
Notifications
You must be signed in to change notification settings - Fork 20
/
Dockerfile
96 lines (88 loc) · 2.82 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
FROM ubuntu:rolling
ARG xrdp_source=https://github.com/neutrinolabs/xrdp/releases/download/v0.9.3.1/xrdp-0.9.3.1.tar.gz
ARG xorgxrdp_source=https://github.com/neutrinolabs/xorgxrdp/releases/download/v0.2.3/xorgxrdp-0.2.3.tar.gz
# install packages
RUN apt-get update \
&& apt-get install --yes --force-yes --no-install-recommends \
software-properties-common \
xorg \
xserver-xorg \
xfce4 \
gnome-themes-standard \
gtk2-engines-pixbuf \
file-roller \
evince \
gpicview \
leafpad \
xfce4-whiskermenu-plugin \
ttf-ubuntu-font-family \
dbus-x11 \
vnc4server \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
# build and install xrdp from source in one step (minimise size of container)
RUN apt-get update \
&& apt-get install --yes --force-yes --no-install-recommends \
wget \
build-essential \
libssl-dev \
libpam0g-dev \
libxrandr-dev \
nasm \
xserver-xorg-dev \
libxfont1-dev \
pkg-config \
file \
libxfixes-dev \
&& cd /tmp \
&& wget --no-check-certificate $xrdp_source \
&& tar -xf xrdp-*.tar.gz -C /tmp/ \
&& cd /tmp/xrdp-* \
&& ./configure \
&& make \
&& make install \
&& cd /tmp \
&& rm -rf xrdp-* \
&& wget --no-check-certificate $xorgxrdp_source \
&& tar -xf xorgxrdp-*.tar.gz -C /tmp/ \
&& cd /tmp/xorgxrdp-* \
&& ./configure \
&& make \
&& make install \
&& cd /tmp \
&& rm -rf xorgxrdp-* \
&& apt-get remove --yes --force-yes \
wget \
build-essential \
libssl-dev \
libpam0g-dev \
libxrandr-dev \
nasm \
xserver-xorg-dev \
libxfont1-dev \
pkg-config \
file \
libxfixes-dev \
&& apt-get --yes autoremove \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
# install theme
RUN add-apt-repository ppa:numix/ppa \
&& apt-get update \
&& apt-get install --yes --force-yes --no-install-recommends numix-icon-theme numix-icon-theme-circle \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
# add the customised files
ADD ubuntu-files/lightdm-gtk-greeter.conf /etc/lightdm/lightdm-gtk-greeter.conf
ADD ubuntu-files/Adwaita-Xfce /usr/share/themes/Adwaita-Xfce
ADD ubuntu-files/xfce-perchannel-xml /etc/xdg/xfce4/xfconf/xfce-perchannel-xml
RUN mkdir -p /usr/share/backgrounds
ADD ubuntu-files/background-default.png /usr/share/backgrounds/background-default.png
RUN ln -s /usr/share/icons/Numix-Circle /usr/share/icons/KXicons
# add the user
RUN useradd --create-home user
RUN echo "user:changeme" | chpasswd
# add the keyboard maps
COPY keymaps /etc/xrdp/
ADD entrypoint.sh /entrypoint.sh
ENTRYPOINT /entrypoint.sh