diff --git a/Dockerfiles/anolis23 b/Dockerfiles/anolis23 new file mode 100644 index 0000000000000000000000000000000000000000..6a4ebaf8cfdb2c21e049bd843695305358641aea --- /dev/null +++ b/Dockerfiles/anolis23 @@ -0,0 +1,22 @@ +FROM openanolis/anolisos:23 + +ARG DataDir="/usr/share/security-benchmark" + +WORKDIR /root + +RUN yum install -y make cmake python3 python3-yaml python3-jinja2 python3-setuptools openscap-utils openscap-scanner git +RUN git clone https://github.com/ComplianceAsCode/content.git \ + && cd content/build \ + && cmake -DSSG_PRODUCT_DEFAULT:BOOLEAN=FALSE -DSSG_PRODUCT_ANOLIS23:BOOLEAN=TRUE ../ \ + && make -j $(nproc) \ + && make install \ + && rm -rf /root/content + +RUN git clone https://gitee.com/anolis/security-benchmark.git \ + && cd security-benchmark \ + && mkdir -p $DataDir/tools \ + && cp -a tools/scanners $DataDir/tools \ + && cp -a tools/remediation-kits $DataDir/tools \ + && cp -a scanners $DataDir \ + && cp -a remediation-kits $DataDir \ + && rm -rf /root/security-benchmark \ No newline at end of file