2024-12-11 14:50:03 +13:00

47 lines
1.4 KiB
Docker

ARG BASE_IMAGE=m1k1o/neko:base
FROM $BASE_IMAGE
ENV BROWSER=librewolf
#
# Install desktop and other programs
RUN set -eux; apt-get update; \
apt-get install -y --no-install-recommends xfce4 xfce4-terminal sudo; \
apt-get install -y wget curl gnupg lsb-release apt-transport-https ca-certificates \
git nano sxiv mpv rsync kwrite xwallpaper aria2 zsh
#
## Install Browsers and other core apps
RUN set -eux; \
#
## Install yt-dlp
curl -L https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp -o /bin/yt-dlp; \
chmod a+rx /bin/yt-dlp; \
#
# Add user to sudoers
usermod -aG sudo neko; \
echo "neko:neko" | chpasswd; \
echo "%sudo ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers; \
#
# Install Librewolf
sudo apt-get update; \
sudo apt-get install extrepo -y; \
sudo extrepo enable librewolf; \
sudo apt-get update; \
sudo apt-get install librewolf -y; \
#
# Clean up
apt-get clean -y; \
rm -rf /var/lib/apt/lists/* /var/cache/apt/*
#
## Look and feel / Finishing touches
RUN set -eux; \
#
## Oh My Zsh
chsh --shell /usr/bin/zsh neko; \
sudo -u neko sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" "" --unattended
#
# Copy dotfiles
COPY dots /dots
RUN set -eux; rsync -og --chown=neko:neko --recursive /dots/ /
#
# Copy configuation files
COPY supervisord.conf /etc/neko/supervisord/xfce.conf