initial commit of a worker skeleton

This commit is contained in:
Volodymyr Smirnov
2020-10-20 16:20:38 +03:00
commit 7e63c77419
28 changed files with 665 additions and 0 deletions

View 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

View File

@@ -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