[Clamav-devel] ClamAV for AlpineLinux

Tran, Tri Tri.Tran at cepheid.com
Fri Aug 30 16:23:49 EDT 2019


Hi Team,

This is Tri from Cepheid. I would like to ask the team a question about installing ClamAV into out application docker image and run it.
The description is below:

I have a dockerfile to build a docker image which is our application image based on AlpineLinux image. Now I want to install ClamAV into this docker imageand run the scan. Can you help me how can I do that?
I basically added the below to my dockerfile

RUN apk --no-cache add clamav clamav-libunrar \

    && mkdir /run/clamav \

    && chown clamav:clamav /run/clamav && \

    rm -rf /var/cache/apk/* /usr/src/*



EXPOSE 3310

EXPOSE 7357



RUN freshclam --quiet && \

    clamscan
I am not sure that is correct or do I need to add more thing here.

Thank you
Tri Tran

Please be advised that this email may contain confidential information. If you are not the intended recipient, please notify us by email by replying to the sender and delete this message. The sender disclaims that the content of this email constitutes an offer to enter into, or the acceptance of, any agreement; provided that the foregoing does not invalidate the binding effect of any digital or other electronic reproduction of a manual signature that is included in any attachment.


More information about the clamav-devel mailing list