Files
my-fedora/Containerfile
qpismont 1fc2c1ae92
All checks were successful
ci/woodpecker/push/ci Pipeline was successful
ci/woodpecker/cron/ci Pipeline was successful
Update base image to Fedora 43 in Containerfile
2025-10-28 19:17:17 +01:00

70 lines
2.9 KiB
Docker

FROM registry.fedoraproject.org/fedora-bootc:43
#Ajout du dépot vscode
RUN rpm --import https://packages.microsoft.com/keys/microsoft.asc \
&& echo -e "[code]\nname=Visual Studio Code\nbaseurl=https://packages.microsoft.com/yumrepos/vscode\nenabled=1\nautorefresh=1\ntype=rpm-md\ngpgcheck=1\ngpgkey=https://packages.microsoft.com/keys/microsoft.asc" | tee /etc/yum.repos.d/vscode.repo > /dev/null
#Ajout du dépot mullvad
RUN curl -fsSL https://repository.mullvad.net/rpm/stable/mullvad.repo -o /etc/yum.repos.d/mullvad.repo
#Install de gnome avec support hardware + Podman + Cups + Vulkan driver + Plymouth
RUN dnf install -y \
@gnome-desktop \
@hardware-support \
@development-tools \
code \
glibc-langpack-fr \
flatpak \
buildah \
podman \
podman-docker \
fuse-overlayfs \
cups \
dconf \
cups-pdf \
vulkan-loader \
vulkan-tools \
mesa-vulkan-drivers \
xorg-x11-drv-amdgpu \
plymouth \
wget \
plymouth-system-theme \
plymouth-plugin-label \
plymouth-plugin-fade-throbber \
podman-compose \
mullvad-vpn \
&& dnf remove -y gnome-software gnome-software-rpm-ostree || true \
&& dnf clean all \
&& rm -rf /var/cache/dnf
RUN wget https://github.com/mountain-loop/yaak/releases/download/v2025.7.0/yaak-2025.7.0-1.x86_64.rpm -O /tmp/yaak.rpm \
&& dnf install -y /tmp/yaak.rpm \
&& rm -f /tmp/yaak.rpm
RUN wget https://cdn.filen.io/@filen/desktop/release/latest/Filen_linux_x86_64.rpm -O /tmp/filen.rpm \
&& dnf install -y /tmp/filen.rpm \
&& rm -f /tmp/filen.rpm
#Langue FR par défaut + Fuse userns + Timezone Paris
RUN echo "LANG=fr_FR.UTF-8" > /etc/locale.conf \
&& echo "KEYMAP=fr" > /etc/vconsole.conf \
&& ln -sf /usr/share/zoneinfo/Europe/Paris /etc/localtime \
&& echo "user.max_user_namespaces=28633" > /etc/sysctl.d/userns.conf
#Configuration des fenêtres gnome pour avoir les btns style windows
RUN mkdir -p /etc/dconf/db/local.d /etc/dconf/profile && \
printf "[org/gnome/desktop/wm/preferences]\nbutton-layout=':minimize,maximize,close'\n" > /etc/dconf/db/local.d/02-window-buttons && \
printf "user-db:user\nsystem-db:local\n" > /etc/dconf/profile/user && \
dconf update 2>/dev/null || true
# Ajout de flathub avec des apps par défaut
RUN flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo \
&& flatpak install -y --system flathub runtime/org.gnome.Platform/x86_64/49 \
&& flatpak install -y --system flathub io.github.kolunmi.Bazaar
RUN systemctl set-default graphical.target
#Activation des services + Desactivation de bootc-update automatique
RUN systemctl preset-all && \
systemctl enable gdm.service NetworkManager.service bluetooth.service podman.socket cups.service && \
systemctl mask bootc-fetch-apply-updates.timer