33 Star 361 Fork 36

GVPOpenNJet/OpenNJet

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Dockerfile 1.28 KB
一键复制 编辑 原始数据 按行查看 历史
FROM centos:7
RUN rm -rf /etc/yum.repos.d/*.repo
COPY ./repos/*.repo /etc/yum.repos.d/
RUN yum clean all && yum makecache && \
yum install -y gcc gcc-c++ \
libtool libtool-ltdl cmake3 \
make cmake perl perl-CPAN \
zlib-devel cmake perl-IPC-Cmd \
pkgconfig make vim-common \
sudo m4 deltarpm openssl-devel \
automake autoconf \
libasan libasan-static \
yum-utils rpm-build && \
yum clean all
RUN useradd builder -u 1000 -m -G users,wheel && \
echo "builder ALL=(ALL:ALL) NOPASSWD:ALL" >> /etc/sudoers && \
echo "# macros" > /home/builder/.rpmmacros && \
echo "%_topdir /home/builder/rpm" >> /home/builder/.rpmmacros && \
echo "%_sourcedir %{_topdir}" >> /home/builder/.rpmmacros && \
echo "%_builddir %{_topdir}" >> /home/builder/.rpmmacros && \
echo "%_specdir %{_topdir}" >> /home/builder/.rpmmacros && \
echo "%_rpmdir %{_topdir}" >> /home/builder/.rpmmacros && \
echo "%_srcrpmdir %{_topdir}" >> /home/builder/.rpmmacros && \
mkdir /home/builder/rpm && \
chown -R builder /home/builder
#USER builder
ENV FLAVOR=rpmbuild OS=centos DIST=el7
CMD /srv/pkg
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C
1
https://gitee.com/njet-rd/njet.git
git@gitee.com:njet-rd/njet.git
njet-rd
njet
OpenNJet
master

搜索帮助