FROM centos:centos8 MAINTAINER svk@nuk-svk.ru RUN dnf update -y && dnf install -y tcl tcl-devel tk tk-devel rpm-build git && dnf clean all RUN useradd rpmbuild -u 5002 -g users -p rpmbuild USER rpmbuild ENV HOME /home/rpmbuild WORKDIR /home/rpmbuild RUN mkdir -p /home/rpmbuild/rpmbuild/{BUILD,RPMS,SOURCES,SPECS,SRPMS} RUN echo '%_topdir %{getenv:HOME}/rpmbuild' > /home/rpmbuild/.rpmmacros