Install 86box

This commit is contained in:
2026-05-12 16:18:04 +03:00
parent 185f62bf25
commit 45ce12129c
7 changed files with 828 additions and 266 deletions

View File

@@ -1,49 +1,39 @@
FROM ghcr.io/m1k1o/neko/base:3.0.8
FROM ghcr.io/m1k1o/neko/base:latest
# copy sources list file
COPY sources.list /etc/apt/sources.list
ENV DEBIAN_FRONTEND=noninteractive
# update the system
RUN set -eux; \
apt-get update; \
apt-get -y upgrade;
RUN apt-get update; \
apt-get -y upgrade
# install xfce
RUN set -eux; \
apt-get install -y --no-install-recommends -o Dpkg::Options::="--force-confold" xfce4 xfce4-terminal sudo vim curl pavucontrol
# install fuse for appimage support
RUN apt-get -y install fuse
# install brave
RUN set -eux; \
curl -fsSLo /usr/share/keyrings/brave-browser-archive-keyring.gpg \
https://brave-browser-apt-release.s3.brave.com/brave-browser-archive-keyring.gpg; \
echo "deb [signed-by=/usr/share/keyrings/brave-browser-archive-keyring.gpg] https://brave-browser-apt-release.s3.brave.com/ stable main" | \
tee /etc/apt/sources.list.d/brave-browser-release.list; \
apt update; \
apt install -y brave-browser
# install openbox
RUN apt-get install -y --no-install-recommends openbox
# install transmission and VLC
RUN set -eux; \
apt-get install -y transmission-gtk vlc
# install 86box
COPY scripts/fetch_86box.sh /tmp/fetch_86box.sh
RUN chmod +x /tmp/fetch_86box.sh; \
/tmp/fetch_86box.sh; \
rm -f /tmp/fetch_86box.sh
# install gstreamer plugins
RUN set -eux; \
apt-get install -y gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-plugins-ugly gstreamer1.0-plugins-bad; \
apt-get install -y gstreamer1.0-libav gstreamer1.0-tools
# add user to sudoers
RUN set -eux; \
usermod -aG sudo neko; \
echo "neko:neko" | chpasswd; \
echo "%sudo ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers
# create configuration directories for 86box
RUN mkdir -p /home/neko/.config/86Box; \
chown -R neko:neko /home/neko/.config/86Box; \
mkdir -p /home/neko/.local/share/86Box; \
chown -R neko:neko /home/neko/.local/share/86Box/; \
mkdir -p /home/neko/vmstorage; \
chown -R neko:neko /home/neko/vmstorage
# clean up
RUN set -eux; \
apt-get clean -y; \
RUN apt-get clean -y; \
rm -rf /var/lib/apt/lists/* /var/cache/apt/*
# copy configuation files
COPY supervisord.conf /etc/neko/supervisord/xfce.conf
COPY brave-browser.desktop /usr/share/applications/
COPY supervisord.conf /etc/neko/supervisord/86box.conf
COPY openbox.xml /etc/neko/openbox.xml
VOLUME /home/neko
VOLUME /home/neko/.config/86Box
VOLUME /home/neko/.local/share/86Box/
VOLUME /home/neko/vmstorage