mirror of
https://github.com/morgan9e/fedora-dev
synced 2026-04-14 00:14:18 +09:00
Refactor Dockerfile to streamline package installation
This commit is contained in:
@@ -1,27 +1,17 @@
|
||||
FROM registry.fedoraproject.org/fedora-toolbox:43
|
||||
|
||||
RUN dnf install -y \
|
||||
https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-"$(rpm -E %fedora)".noarch.rpm \
|
||||
https://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-"$(rpm -E %fedora)".noarch.rpm \
|
||||
&& dnf clean all
|
||||
|
||||
RUN dnf update -y && dnf clean all
|
||||
|
||||
RUN dnf install -y \
|
||||
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 \
|
||||
RUN dnf update -y && \
|
||||
dnf install -y --setopt=install_weak_deps=False \
|
||||
fedpkg fedora-packager rpmdevtools rpm-build rpm-sign pesign \
|
||||
gcc gcc-c++ make cmake autoconf automake libtool \
|
||||
openssl-devel elfutils-devel ncurses-devel \
|
||||
curl wget \
|
||||
tar gzip bzip2 xz zstd \
|
||||
git vim \
|
||||
&& dnf clean all
|
||||
|
||||
RUN rpmdev-setuptree
|
||||
|
||||
RUN mkdir -p /data
|
||||
WORKDIR /data
|
||||
WORKDIR /root/rpmbuild
|
||||
|
||||
CMD ["/bin/bash"]
|
||||
|
||||
Reference in New Issue
Block a user