Move packages to env file and allow extras per distro.

This commit is contained in:
2025-10-13 05:31:57 -07:00
parent f57a0d322d
commit 7abe909cdf
7 changed files with 47 additions and 33 deletions

View File

@@ -2,7 +2,7 @@
FROM archlinux:base
RUN pacman -Syu --noconfirm && pacman -Sy --noconfirm git bash curl sudo which
RUN pacman -Syu --noconfirm && pacman -Sy --noconfirm $PACKAGES $EXTRA_ARCH
COPY bin/main.sh /root/main.sh
RUN chmod +x /root/main.sh

View File

@@ -2,7 +2,7 @@
FROM debian:trixie
RUN apt update && apt dist-upgrade -y && apt install -y git bash curl sudo which
RUN apt update && apt dist-upgrade -y && apt install -y $PACKAGES $EXTRA_DEBIAN
COPY bin/main.sh /root/main.sh
RUN chmod +x /root/main.sh

View File

@@ -2,7 +2,7 @@
FROM fedora:latest
RUN dnf upgrade --refresh -y && dnf install -y git bash curl sudo which
RUN dnf upgrade --refresh -y && dnf install -y $PACKAGES $EXTRA_FEDORA
COPY bin/main.sh /root/main.sh
RUN chmod +x /root/main.sh

View File

@@ -4,7 +4,7 @@ FROM opensuse/tumbleweed
RUN zypper -n refresh \
&& zypper -n dist-upgrade -y \
&& zypper -n install -y git bash curl sudo which
&& zypper -n install -y $PACKAGES $EXTRA_OPENSUSE
COPY bin/main.sh /root/main.sh
RUN chmod +x /root/main.sh

View File

@@ -2,7 +2,7 @@
FROM ubuntu:rolling
RUN apt update && apt dist-upgrade -y && apt install -y git bash curl sudo which
RUN apt update && apt dist-upgrade -y && apt install -y $PACKAGES $EXTRA_UBUNTU
COPY bin/main.sh /root/main.sh
RUN chmod +x /root/main.sh