-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
68 lines (52 loc) · 1.98 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
#
# SRS-docker Dockerfile
# Light edition
#
FROM ubuntu:22.04
LABEL maintainer="Deephack"
ENV DEBIAN_FRONTEND noninteractive
# default screen size
ENV XRES 1280x800x24
# default tzdata settings
ENV TZ Etc/UTC
ENV LANG en_GB.utf8
RUN apt update \
&& apt install -y --no-install-recommends software-properties-common curl \
&& apt update \
&& apt install -y --no-install-recommends --allow-unauthenticated \
supervisor sudo net-tools zenity xz-utils wget gnupg2 software-properties-common \
dbus-x11 x11-utils alsa-utils \
mesa-utils libgl1-mesa-dri \
&& apt autoclean -y \
&& apt autoremove -y \
&& rm -rf /var/lib/apt/lists/*
RUN apt update \
&& apt install -y --no-install-recommends --allow-unauthenticated \
xvfb x11vnc openssh-server \
vim-tiny firefox ttf-wqy-zenhei \
&& apt autoclean -y \
&& apt autoremove -y \
&& rm -rf /var/lib/apt/lists/* \
&& mkdir /run/sshd
RUN apt update \
&& apt install -y xfce4 xfce4-terminal xfce4-xkb-plugin mousepad adwaita-icon-theme
## Add Wine
RUN dpkg --add-architecture i386
RUN wget -nc https://dl.winehq.org/wine-builds/winehq.key ; apt-key add winehq.key ; apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ jammy main'
RUN apt update -y ; apt install -y --install-recommends winehq-devel
COPY supervisord.conf /etc/supervisord.conf
COPY startup.sh /startup.sh
## Add default user
RUN adduser --disabled-password --gecos "" srsuser
RUN echo "srsuser:password" | /usr/sbin/chpasswd \
&& echo "srsuser ALL=(ALL) ALL" >> /etc/sudoers
## Add SRS scripts
COPY srs-install.sh /home/srsuser/srs-install.sh
COPY srs-run.sh /home/srsuser/srs-run.sh
COPY SRS-Install.desktop /home/srsuser/Desktop/SRS-Install.desktop
COPY SRS-Run.desktop /home/srsuser/Desktop/SRS-Run.desktop
## Disable screenlocking
COPY xfce4-screensaver.xml /home/srsuser/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-screensaver.xml
## exposed ports
EXPOSE 22 5900
ENTRYPOINT ["/startup.sh"]