From a43600ad61aacf492caa2c0f6f2c0d56d35ccc4d Mon Sep 17 00:00:00 2001 From: YuQing-Rain Date: Tue, 11 Jul 2023 11:25:12 +0800 Subject: [PATCH] Add Dockerfile anolis23 Signed-off-by: YuQing-Rain --- Dockerfiles/anolis23 | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 Dockerfiles/anolis23 diff --git a/Dockerfiles/anolis23 b/Dockerfiles/anolis23 new file mode 100644 index 0000000..6a4ebaf --- /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 -- Gitee