generated from ublue-os/boxkit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathContainerfile
53 lines (39 loc) · 2.79 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
FROM registry.fedoraproject.org/fedora-toolbox:latest
LABEL com.github.containers.toolbox="true" \
usage="runs Brave in distrobox" \
summary="A Docker image with all three brave branches installed" \
maintainer="dnkmmr"
RUN dnf upgrade -y
RUN dnf install -y fastfetch adw-gtk3-theme breeze-cursor-theme make gcc file bash-completion bc bzip2 cracklib-dicts curl diffutils dnf-plugins-core findutils glibc-all-langpacks glibc-locale-source gnupg2 gnupg2-smime hostname iproute iputils keyutils krb5-libs less lsof man-db man-pages mtr ncurses nss-mdns openssh-clients pam passwd pigz pinentry procps-ng rsync shadow-utils sudo tcpdump time traceroute tree tzdata unzip util-linux vte-profile wget which whois words xorg-x11-xauth xz zip mesa-dri-drivers mesa-vulkan-drivers vulkan dnf-plugins-core
COPY ./repos/charm.repo /etc/yum.repos.d
RUN rpm --import https://repo.charm.sh/yum/gpg.key
RUN dnf install -y gum
COPY ./gum-startup.sh /etc/profile.d
COPY ./bin/startup /usr/local/bin
COPY ./bin/export-brave /usr/local/bin
COPY ./bin/unexport-brave /usr/local/bin
RUN chmod +x /usr/local/bin/startup
RUN chmod +x /usr/local/bin/export-brave
RUN chmod +x /usr/local/bin/unexport-brave
RUN dnf install -y https://mirrors.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm https://mirrors.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm
RUN dnf install -y intel-media-driver nvidia-vaapi-driver
RUN dnf swap -y mesa-va-drivers mesa-va-drivers-freeworld
RUN dnf swap -y mesa-vdpau-drivers mesa-vdpau-drivers-freeworld
RUN dnf copr enable -y kylegospo/distrobox-utils
RUN dnf install -y xdg-utils-distrobox
RUN ln -s /usr/bin/distrobox-host-exec /usr/bin/flatpak
RUN dnf config-manager addrepo --from-repofile=https://brave-browser-rpm-release.s3.brave.com/brave-browser.repo
RUN rpm --import https://brave-browser-rpm-release.s3.brave.com/brave-core.asc
RUN dnf install -y brave-browser
RUN dnf config-manager addrepo --from-repofile=https://brave-browser-rpm-beta.s3.brave.com/brave-browser-beta.repo
RUN rpm --import https://brave-browser-rpm-beta.s3.brave.com/brave-core-nightly.asc
RUN dnf install -y brave-browser-beta
RUN dnf config-manager addrepo --from-repofile=https://brave-browser-rpm-nightly.s3.brave.com/brave-browser-nightly.repo
RUN rpm --import https://brave-browser-rpm-nightly.s3.brave.com/brave-core-nightly.asc
RUN dnf install -y brave-browser-nightly
RUN dnf copr enable -y kylegospo/webapp-manager
RUN dnf install -y webapp-manager
COPY ./bin/brave-list /usr/local/bin
COPY ./share/brave-list.txt /usr/local/share
RUN chmod +x /usr/local/bin/brave-list
RUN rm -rf /tmp/*