File tree Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -78,15 +78,9 @@ RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys C3173AA6 A
7878 python-dev \
7979 ghostscript \
8080 poppler-utils \
81- tesseract-ocr \
82- clamav-daemon \
83- clamdscan && \
81+ tesseract-ocr && \
8482 rm -rf /usr/share/man/man1 && \
8583 rm -rf /usr/share/man/man7 && \
86- # adding clamav socket directory to allow clamd to start without using a service
87- mkdir -p /run/clamav && \
88- chown clamav /run/clamav && \
89- \
9084 # Setup Rubygems
9185 echo 'gem: --no-document' > /etc/gemrc && \
9286 gem install bundler && \
Original file line number Diff line number Diff line change @@ -67,6 +67,11 @@ RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys C3173AA6 &
6767 clamdscan && \
6868 rm -rf /usr/share/man/man1 && \
6969 rm -rf /usr/share/man/man7 && \
70+ # clamav is configured in local mode by default, disabling LocalSocket and adding TCPAddr to move it into networked mode
71+ sed -i 's/^\b LocalSocket\b /#&/g' /etc/clamav/clamd.conf && \
72+ echo "TCPSocket 3310" >> /etc/clamav/clamd.conf && \
73+ echo "TCPAddr 10.21.4.150" >> /etc/clamav/clamd.conf && \
74+ echo "TCPAddr 10.21.5.150" >> /etc/clamav/clamd.conf && \
7075 # adding clamav socket directory to allow clamd to start without using a service
7176 mkdir -p /run/clamav && \
7277 chown clamav /run/clamav && \
You can’t perform that action at this time.
0 commit comments