12 lines
474 B
Docker
12 lines
474 B
Docker
|
FROM redhat/ubi9:9.1.0
|
||
|
MAINTAINER svk@nuk-svk.ru
|
||
|
|
||
|
RUN dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm -y
|
||
|
RUN dnf update -y && dnf install -y tcl tk tcllib 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
|