Skip to content

Commit

Permalink
update build docker
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangjiacheng.111 committed Jun 29, 2022
1 parent 2a24f91 commit 11760fc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plugins/scanner_clamav/docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,13 @@ RUN rustup target add x86_64-unknown-linux-musl
RUN CC="x86_64-linux-musl-gcc" CXX="x86_64-linux-musl-c++" RUSTFLAGS='-C target-feature=+crt-static' cargo build --release --bin scanner_plugin --target x86_64-unknown-linux-musl

RUN mkdir /Elkeid/plugins/scanner_clamav/output
RUN cp -r tools/* ./output/.

WORKDIR /Elkeid/plugins/scanner_clamav/output
RUN cp /Elkeid/plugins/scanner_clamav/target/x86_64-unknown-linux-musl/release/scanner_plugin /Elkeid/plugins/scanner_clamav/output/scanner_clamav
RUN mkdir tmp
RUN wget http://lf9-elkeid.bytetos.com/obj/elkeid-download/18249e0cbe7c6aca231f047cb31d753fa4604434fcb79f484ea477f6009303c3/archive_db_default_20220607.zip
RUN mv archive_db_default_20220607.zip ./tmp
RUN tar zcvf scanner_clamav.tar.gz scanner_clamav tmp
RUN sha256sum scanner_clamav.tar.gz > sha256
RUN sha256sum scanner_clamav > sign
RUN rm -rf tmp scanner_clamav

0 comments on commit 11760fc

Please sign in to comment.