Skip to content

Commit ebbf8b2

Browse files
authored
fix(image): fix error plugin dir (#201)
1 parent 3f0efbc commit ebbf8b2

File tree

2 files changed

+16
-14
lines changed

2 files changed

+16
-14
lines changed

plugins/go/veinmind-malicious/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories
1313
FROM veinmind/base:1.5.3-stretch
1414
# install clamav
1515
COPY dockerfiles/sources.list /etc/apt/sources.list
16-
RUN apt update && apt-get install -y clamav clamav-daemon && freshclam
16+
RUN apt update && apt-get install -y clamav clamav-daemon && \
17+
rm -rf /var/lib/apt/lists/* && freshclam
1718
COPY dockerfiles/clamd.conf /etc/clamav/clamd.conf
1819

1920
# copy veinmind-malicious from context

veinmind-runner/Dockerfile

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -22,23 +22,24 @@ FROM veinmind/python3.6:1.5.3-stretch as release
2222
WORKDIR /tool
2323

2424
COPY dockerfiles/sources.list /etc/apt/sources.list
25-
RUN apt update && apt-get install -y clamav clamav-daemon && freshclam
25+
RUN apt update && apt-get install -y --no-install-recommends clamav clamav-daemon && \
26+
rm -rf /var/lib/apt/lists/* && mkdir plugin && freshclam
2627
COPY dockerfiles/clamd.conf /etc/clamav/clamd.conf
2728

2829
COPY --from=builder /build/veinmind-runner .
29-
COPY --from=basic /tool/veinmind-basic .
30-
COPY --from=weakpass /tool/veinmind-weakpass .
31-
COPY --from=malicious /tool/veinmind-malicious .
32-
COPY --from=sensitive /tool /tool/veinmind-sensitive
33-
COPY --from=history /tool /tool/veinmind-history
34-
COPY --from=backdoor /tool /tool/veinmind-backdoor
35-
COPY --from=log4j2 /tool/veinmind-log4j2 .
36-
COPY --from=unsafe-mount /tool/veinmind-unsafe-mount .
37-
COPY --from=iac /tool/veinmind-iac .
38-
COPY --from=vuln /tool/veinmind-vuln .
39-
COPY --from=escalate /tool/veinmind-escalate .
30+
COPY --from=basic /tool/veinmind-basic ./plugin/
31+
COPY --from=weakpass /tool/veinmind-weakpass ./plugin/
32+
COPY --from=malicious /tool/veinmind-malicious ./plugin/
33+
COPY --from=sensitive /tool/veinmind-sensitive ./plugin/
34+
COPY --from=history /tool /tool/plugin/veinmind-history
35+
COPY --from=backdoor /tool /tool/plugin/veinmind-backdoor
36+
COPY --from=log4j2 /tool/veinmind-log4j2 ./plugin/
37+
COPY --from=unsafe-mount /tool/veinmind-unsafe-mount ./plugin
38+
COPY --from=iac /tool/veinmind-iac ./plugin
39+
COPY --from=vuln /tool/veinmind-vuln ./plugin
40+
COPY --from=escalate /tool/veinmind-escalate ./plugin
4041

41-
RUN pip install -r veinmind-history/requirements.txt && pip install -r veinmind-backdoor/requirements.txt && chmod +x */scan.py
42+
RUN pip install -r plugin/veinmind-history/requirements.txt && pip install -r plugin/veinmind-backdoor/requirements.txt && chmod +x plugin/*/scan.py
4243
RUN echo "#!/bin/bash\n\n./veinmind-runner \$*" > /tool/entrypoint.sh && chmod +x /tool/entrypoint.sh && chmod +x /tool/veinmind-runner
4344
ENTRYPOINT ["/tool/entrypoint.sh"]
4445

0 commit comments

Comments
 (0)