-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdockerfile
37 lines (28 loc) · 903 Bytes
/
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
FROM ubuntu:18.04
ENV DEBIAN_FRONTEND noninteractive
# Install requirements
RUN set -x \
&& apt-get update -y \
&& apt-get dist-upgrade -y \
&& apt-get install -y \
software-properties-common \
openssh-server \
&& rm -rf /var/lib/apt/lists/*
# Install X2Go server components
RUN set -x \
&& add-apt-repository ppa:x2go/stable \
&& apt-get update -y \
&& apt-get upgrade -y \
&& apt-get install -y x2goserver \
&& rm -rf /var/lib/apt/lists/*
# SSH runtime
RUN mkdir /var/run/sshd
# Configure default user
RUN adduser --gecos "X2Go User" --disabled-password x2go
RUN echo "x2go:x2go" | chpasswd
RUN add-apt-repository ppa:chromium-team/stable &&\
apt-get update &&\
apt-get install -yq chromium-browser pulseaudio xfce4 sakura vlc
ADD entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
ENTRYPOINT /entrypoint.sh