neko-apps/xfce-custom/Dockerfile

38 lines
1.3 KiB
Docker
Raw Normal View History

2024-03-30 18:05:11 +13:00
ARG BASE_IMAGE=m1k1o/neko:base
FROM $BASE_IMAGE
2024-03-30 23:52:44 +13:00
ENV BROWSER=librewolf
2024-03-30 18:05:11 +13:00
#
2024-03-30 23:52:44 +13:00
# Install desktop and other programs
2024-03-30 18:05:11 +13:00
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 \
2024-04-03 20:48:42 +13:00
git nano sxiv mpv rsync kwrite xwallpaper aria2
2024-03-30 18:37:11 +13:00
RUN set -eux; \
2024-03-30 18:05:11 +13:00
#
2024-03-30 23:52:44 +13:00
## Install yt-dlp
2024-03-30 18:37:11 +13:00
curl -L https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp -o /bin/yt-dlp; \
chmod a+rx /bin/yt-dlp; \
2024-03-30 18:05:11 +13:00
#
2024-03-30 23:52:44 +13:00
# Add user to sudoers
2024-03-30 18:05:11 +13:00
usermod -aG sudo neko; \
echo "neko:neko" | chpasswd; \
echo "%sudo ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers; \
#
# Install Librewolf
curl https://deb.librewolf.net/keyring.gpg | gpg --dearmor | sudo tee /usr/share/keyrings/librewolf.gpg >/dev/null; \
echo "deb [arch=amd64 signed-by=/usr/share/keyrings/librewolf.gpg] http://deb.librewolf.net $(lsb_release -sc) main" | sudo tee /etc/apt/sources.list.d/librewolf.list; \
apt-get update; \
apt-get install librewolf -y; \
2024-03-30 23:52:44 +13:00
#
2024-03-30 18:05:11 +13:00
# clean up
apt-get clean -y; \
rm -rf /var/lib/apt/lists/* /var/cache/apt/*
2024-03-30 18:37:11 +13:00
#
2024-03-30 23:52:44 +13:00
# Copy dotfiles
2024-03-30 18:37:11 +13:00
COPY dots /dots
2024-03-30 23:52:44 +13:00
RUN set -eux; rsync --recursive /dots/ /
2024-03-30 18:05:11 +13:00
#
2024-03-30 23:52:44 +13:00
# Copy configuation files
2024-03-30 18:05:11 +13:00
COPY supervisord.conf /etc/neko/supervisord/xfce.conf