xpra icon
Bug tracker and wiki

Ticket #1901: Dockerfile-beta

File Dockerfile-beta, 1.7 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&& curl -o /etc/apt/sources.list.d/xpra-beta.list "https://xpra.org/repos/artful/xpra-beta.list" \
49&& apt-get update \
50&& apt-get -y install \
51xpra \
52&& apt-get clean \
53&& rm -rf /var/lib/apt/lists/*
54
55# set up non-root user
56ENV MY_USER=matteo
57ENV MY_UID=1988
58ENV MY_GID=1988
59
60RUN useradd --create-home --shell /bin/bash --user-group --groups lpadmin,xpra --uid $MY_UID $MY_USER
61
62USER $MY_UID
63
64ENV HOME=/home/matteo
65ENV XDG_RUNTIME_DIR=/home/matteo
66ENV XPRA_DEFAULT_VFB_RESOLUTION=1600x900
67
68EXPOSE 8080
69
70WORKDIR $HOME
71
72CMD xpra start \
73--daemon=no \
74--bind-tcp=0.0.0.0:8080 \
75--html=on \
76--ssl=off \
77--bell=no \
78--pulseaudio=no \
79--webcam=no \
80--mdns=no \
81--system-tray=no \
82--clipboard-direction=both \
83--file-transfer=yes \
84--forward-xdg-open=yes \
85--start=xterm