File tree Expand file tree Collapse file tree 2 files changed +2
-11
lines changed Expand file tree Collapse file tree 2 files changed +2
-11
lines changed Original file line number Diff line number Diff line change @@ -78,19 +78,9 @@ RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys C3173AA6 A
78
78
python-dev \
79
79
ghostscript \
80
80
poppler-utils \
81
- tesseract-ocr \
82
- clamav-daemon \
83
- clamdscan && \
81
+ tesseract-ocr && \
84
82
rm -rf /usr/share/man/man1 && \
85
83
rm -rf /usr/share/man/man7 && \
86
- sed -i 's/^\b LocalSocket\b /#&/g' /etc/clamav/clamd.conf && \
87
- echo "TCPSocket 3310" >> /etc/clamav/clamd.conf && \
88
- echo "TCPAddr 10.21.4.150" >> /etc/clamav/clamd.conf && \
89
- echo "TCPAddr 10.21.5.150" >> /etc/clamav/clamd.conf && \
90
- # adding clamav socket directory to allow clamd to start without using a service
91
- mkdir -p /run/clamav && \
92
- chown clamav /run/clamav && \
93
- \
94
84
# Setup Rubygems
95
85
echo 'gem: --no-document' > /etc/gemrc && \
96
86
gem install bundler && \
Original file line number Diff line number Diff line change @@ -67,6 +67,7 @@ RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys C3173AA6 &
67
67
clamdscan && \
68
68
rm -rf /usr/share/man/man1 && \
69
69
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
70
71
sed -i 's/^\b LocalSocket\b /#&/g' /etc/clamav/clamd.conf && \
71
72
echo "TCPSocket 3310" >> /etc/clamav/clamd.conf && \
72
73
echo "TCPAddr 10.21.4.150" >> /etc/clamav/clamd.conf && \
You can’t perform that action at this time.
0 commit comments