mirror of
https://github.com/volodymyrsmirnov/MalwareMultiScan.git
synced 2025-10-11 04:26:16 +00:00
initial commit of a worker skeleton
This commit is contained in:
8
MalwareMultiScan.Backends/Dockerfiles/Clamav.Dockerfile
Normal file
8
MalwareMultiScan.Backends/Dockerfiles/Clamav.Dockerfile
Normal file
@@ -0,0 +1,8 @@
|
||||
FROM mindcollapse/malware-multi-scan-base:latest
|
||||
|
||||
ENV DEBIAN_FRONTEND noninteractive
|
||||
|
||||
RUN apt-get update && apt-get install -y clamav
|
||||
RUN freshclam --quiet
|
||||
|
||||
ENV MULTI_SCAN_BACKEND_BIN=/usr/bin/clamscan
|
@@ -0,0 +1,22 @@
|
||||
FROM ubuntu:bionic AS backend
|
||||
|
||||
RUN apt-get update
|
||||
RUN apt-get install -y build-essential ca-certificates cabextract libc6-dev-i386 git-core curl
|
||||
|
||||
WORKDIR /opt/loadlibrary
|
||||
RUN git clone https://github.com/taviso/loadlibrary.git /opt/loadlibrary
|
||||
RUN make
|
||||
|
||||
WORKDIR /opt/loadlibrary/engine
|
||||
RUN curl -L "https://go.microsoft.com/fwlink/?LinkID=121721&arch=x86" --output mpan-fe.exe
|
||||
RUN cabextract mpan-fe.exe && rm mpan-fe.exe
|
||||
|
||||
FROM mindcollapse/malware-multi-scan-worker:latest
|
||||
|
||||
RUN apt-get update && apt-get install -y libc6-i386
|
||||
|
||||
COPY --from=backend /opt/loadlibrary/engine /opt/engine
|
||||
COPY --from=backend /opt/loadlibrary/mpclient /opt/mpclient
|
||||
|
||||
ENV BackendType=Defender
|
||||
ENV ScanTimeout=300
|
Reference in New Issue
Block a user