Skip to content

Commit 595c2f8

Browse files
authored
Merge pull request #12 from Springest/add-clamav-to-ruby-container
Add clamav to the Ruby container
2 parents c2feeff + b8bd5d1 commit 595c2f8

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

build/Dockerfile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,14 @@ 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 && \
81+
tesseract-ocr \
82+
clamav-daemon \
83+
clamdscan && \
8284
rm -rf /usr/share/man/man1 && \
8385
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 && \
8489
\
8590
# Setup Rubygems
8691
echo 'gem: --no-document' > /etc/gemrc && \

ruby/Dockerfile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,14 @@ RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys C3173AA6 &
6262
libpq-dev \
6363
ghostscript \
6464
poppler-utils \
65-
tesseract-ocr && \
65+
tesseract-ocr \
66+
clamav-daemon \
67+
clamdscan && \
6668
rm -rf /usr/share/man/man1 && \
6769
rm -rf /usr/share/man/man7 && \
70+
# adding clamav socket directory to allow clamd to start without using a service
71+
mkdir -p /run/clamav && \
72+
chown clamav /run/clamav && \
6873
\
6974
# Setup Rubygems
7075
echo 'gem: --no-document' > /etc/gemrc && \

0 commit comments

Comments
 (0)