Refactor Dockerfile to streamline package installation

This commit is contained in:
2026-02-12 17:38:45 +09:00
committed by GitHub
parent 4829551f36
commit efdb0b45c3

View File

@@ -1,27 +1,17 @@
FROM registry.fedoraproject.org/fedora-toolbox:43 FROM registry.fedoraproject.org/fedora-toolbox:43
RUN dnf install -y \ RUN dnf update -y && \
https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-"$(rpm -E %fedora)".noarch.rpm \ dnf install -y --setopt=install_weak_deps=False \
https://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-"$(rpm -E %fedora)".noarch.rpm \ fedpkg fedora-packager rpmdevtools rpm-build rpm-sign pesign \
&& dnf clean all gcc gcc-c++ make cmake autoconf automake libtool \
openssl-devel elfutils-devel ncurses-devel \
RUN dnf update -y && dnf clean all curl wget \
tar gzip bzip2 xz zstd \
RUN dnf install -y \ git vim \
fedpkg fedora-packager rpmdevtools ncurses-devel pesign git \
bpftool bc bison dwarves elfutils-devel flex gcc gcc-c++ gcc-plugin-devel \
glibc-static hostname m4 make net-tools openssl openssl-devel perl-devel \
perl-generators python3-devel which kernel-rpm-macros vim \
cmake ninja-build meson autoconf automake libtool pkgconfig ccache sccache \
curl wget httpie \
tar gzip bzip2 xz zstd zip unzip \
python3 python3-pip python3-virtualenv pipx \
rust cargo golang \
&& dnf clean all && dnf clean all
RUN rpmdev-setuptree RUN rpmdev-setuptree
RUN mkdir -p /data WORKDIR /root/rpmbuild
WORKDIR /data
CMD ["/bin/bash"] CMD ["/bin/bash"]