forked from theonemule/dos-game
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdockerfile-dosbox-x
69 lines (66 loc) · 1.9 KB
/
dockerfile-dosbox-x
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
FROM fedora:36
ENV USER=root
RUN \
# Install required packages
cd /root && \
dnf -y update && dnf clean all && \
dnf -y --setopt=tsflags=nodocs install wget && \
wget https://github.com/rpmsphere/noarch/raw/master/r/rpmsphere-release-36-1.noarch.rpm && \
rpm -Uvh rpmsphere-release*rpm && \
wget http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-36.noarch.rpm && \
rpm -Uvh rpmfusion-free-release*rpm && \
dnf -y --setopt=tsflags=nodocs install \
python3-websockify \
python-websockify \
net-tools \
git \
hostname \
procps-ng \
which \
nano \
supervisor \
java-11-openjdk-devel \
Xvfb \
fluxbox \
x11vnc \
gtk3 \
tigervnc-server \
xorg-x11-fonts-base \
xterm \
lwm \
less \
zip \
unzip \
dosemu \
pwgen \
xdotool \
telnet \
mtools \
# balance \
ca-certificates \
dnf-plugins-core \
&& dnf clean all
RUN \
# Install noVNC
git clone --depth 1 https://github.com/novnc/noVNC.git /root/noVNC && \
wget https://github.com/pgaskin/easy-novnc/releases/download/v1.1.0/easy-novnc_linux-64bit && \
mv easy-novnc_linux-64bit /usr/local/bin/easy-novnc && chmod +x /usr/local/bin/easy-novnc && \
git clone --depth 1 https://github.com/novnc/websockify /root/noVNC/utils/websockify && \
rm -rf /root/noVNC/.git && \
rm -rf /root/noVNC/utils/websockify/.git
# sed -i -- "s/ps -p/ps -o pid | grep/g" /root/noVNC/utils/launch.sh
RUN wget https://dbgl.org/download/dbgl096.tar.gz && \
tar -zxvf dbgl096.tar.gz && \
dnf -y copr enable rob72/DOSBox-X && \
dnf -y --setopt=tsflags=nodocs install dosbox-x && dnf clean all
COPY supervisor/ /etc/supervisor/conf.d/
COPY startvnc /usr/local/bin
COPY dosboxconsole /usr/local/bin
COPY setup.sh /
RUN chmod +x /setup.sh && /setup.sh
EXPOSE 8080
ENV HOME=/root \
LANG=en_US.UTF-8 \
LANGUAGE=en_US.UTF-8 \
LC_ALL=C.UTF-8 \
CMD ["/usr/bin/supervisord", "-n", "-c", "/etc/supervisor/conf.d/supervisord.conf"]