File: Dockerfile

package info (click to toggle)
scap-security-guide 0.1.39-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 31,836 kB
  • sloc: xml: 129,736; python: 7,462; sh: 3,796; makefile: 27
file content (25 lines) | stat: -rw-r--r-- 584 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
FROM centos:7

ENV OSCAP_USERNAME oscap
ENV OSCAP_DIR scap-security-guide
ENV BUILD_JOBS 4

RUN yum -y upgrade && \
    yum -y install make cmake openscap-utils && \
    mkdir -p /home/$OSCAP_USERNAME && \
    yum clean all && \
    rm -rf /usr/share/doc /usr/share/doc-base \
        /usr/share/man /usr/share/locale /usr/share/zoneinfo

WORKDIR /home/$OSCAP_USERNAME

COPY . $OSCAP_DIR/

# clean the build dir in case the user is also building SSG locally
RUN rm -rf $OSCAP_DIR/build/*

WORKDIR /home/$OSCAP_USERNAME/$OSCAP_DIR/build

RUN cmake ..

CMD /usr/bin/make -j $BUILD_JOBS