xpra icon
Bug tracker and wiki

Ticket #1901: Dockerfile

File Dockerfile, 1.6 KB (added by Matteo Ipri, 20 months ago)
Line 
1FROM ubuntu:artful-20180524
2
3ENV DEBIAN_FRONTEND noninteractive
4
5RUN apt-get update \
6&& apt-get -y install \
7software-properties-common \
8&& add-apt-repository universe \
9&& apt-get update \
10&& apt-get -y dist-upgrade \
11&& apt-get -y install \
12bash \
13bzip2 \
14ca-certificates \
15curl \
16dbus-x11 \
17dirmngr \
18fonts-liberation \
19language-pack-en-base \
20locales \
21lsb \
22websockify \
23wget \
24x11-xserver-utils \
25xdg-utils \
26xterm \
27&& localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8 \
28&& locale-gen \
29&& apt-get clean \
30&& rm -rf /var/lib/apt/lists/*
31
32ENV LC_ALL=en_US.UTF-8
33ENV LANG=en_US.UTF-8
34ENV LANGUAGE=en_US.UTF-8
35
36# install additional software
37RUN apt-get update \
38&& apt-get -y install \
39firefox \
40gedit \
41kate \
42&& apt-get clean \
43&& rm -rf /var/lib/apt/lists/*
44
45# install xpra
46RUN curl https://xpra.org/gpg.asc | apt-key add - \
47&& curl -o /etc/apt/sources.list.d/xpra.list "https://xpra.org/repos/artful/xpra.list" \
48&& apt-get update \
49&& apt-get -y install \
50xpra \
51&& apt-get clean \
52&& rm -rf /var/lib/apt/lists/*
53
54# set up non-root user
55ENV MY_USER=matteo
56ENV MY_UID=1988
57ENV MY_GID=1988
58
59RUN useradd --create-home --shell /bin/bash --user-group --groups lpadmin,xpra --uid $MY_UID $MY_USER
60
61USER $MY_UID
62
63ENV HOME=/home/matteo
64ENV XDG_RUNTIME_DIR=/home/matteo
65ENV XPRA_DEFAULT_VFB_RESOLUTION=1600x900
66
67EXPOSE 8080
68
69WORKDIR $HOME
70
71CMD xpra start \
72--daemon=no \
73--bind-tcp=0.0.0.0:8080 \
74--html=on \
75--ssl=off \
76--bell=no \
77--pulseaudio=no \
78--webcam=no \
79--mdns=no \
80--system-tray=no \
81--clipboard-direction=both \
82--file-transfer=yes \
83--forward-xdg-open=yes \
84--start=xterm