This repository has been archived by the owner on Feb 4, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathContainerfile
69 lines (63 loc) · 1.69 KB
/
Containerfile
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 quay.io/toolbx/arch-toolbox AS gamebox
FROM ghcr.io/askpng/box AS gamebox
# RUN reflector --sort rate --latest 50 --save /etc/pacman.d/mirrorlist
RUN pacman -S --needed \
libbsd \
rust \
wmctrl \
wxwidgets-gtk3 \
xorg-xwayland \
xorg-xwininfo \
zenity \
--noconfirm && \
pacman -S --needed \
gnu-free-fonts \
goverlay \
lutris \
lib32-mangohud \
mangohud \
mesa-demos \
steam \
vulkan-tools \
--noconfirm && \
# winetricks
pacman -S --needed \
gamemode \
lib32-gamemode \
sdl2 \
lib32-sdl2 \
vkd3d \
lib32-vkd3d \
vulkan-icd-loader \
lib32-vulkan-icd-loader \
winetricks \
--noconfirm
# Create build user
RUN useradd -m --shell=/bin/bash build && usermod -L build && \
echo "build ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers && \
echo "root ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
# Install AUR packages
USER build
WORKDIR /home/build
RUN paru -S \
aur/adwsteamgtk \
aur/discord_arch_electron \
aur/gamescope-plus \
aur/protonplus \
aur/sgdboop-bin \
aur/steamcmd \
aur/steamtinkerlaunch \
aur/vkbasalt \
aur/lib32-vkbasalt \
--noconfirm
USER root
WORKDIR /
COPY files /
# Clean up Steam desktop entry
RUN sed -i 's@ (Runtime)@@g' /usr/share/applications/steam.desktop
# Clean up any unnecessary files
RUN userdel -r build && \
rm -drf /home/build && \
sed -i '/build ALL=(ALL) NOPASSWD: ALL/d' /etc/sudoers && \
sed -i '/root ALL=(ALL) NOPASSWD: ALL/d' /etc/sudoers && \
rm -rf /tmp/*