Skip to content

Commit

Permalink
#1110 custom dockerfile for Clamav
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromeleonard committed Jul 7, 2022
1 parent da9c0e7 commit a3a6ac7
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions analyzers/ClamAV/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
## To test an Analyzer of Responder with docker:
#
# Copy this file in the folder of an analyzer or a responder and name it Dockerfile
## edit it and Change variables
#
# - {workername} by the folder name of the analyzer or responder
# - {command} by the value of the `command` in a JSON file
#
# Save and run:
#
# docker build -t cortexneurons/{flavor_name}:devel with {flavor_name} the name of the analyzer of responder in the JSON file
#
#



FROM python:3
WORKDIR /worker
WORKDIR /worker
COPY . ClamAV
RUN test ! -e ClamAV/requirements.txt || pip install --no-cache-dir -rClamAV/requirements.txt
RUN apt update
RUN apt install -y clamav clamav-daemon build-essential
RUN service clamav-freshclam start
RUN service clamav-daemon start
ENTRYPOINT service clamav-freshclam start && service clamav-daemon start && ClamAV/pyclam_analyzer.py

0 comments on commit a3a6ac7

Please sign in to comment.