<commit_before>FROM alpine:3.4


ADD https://github.com/just-containers/s6-overlay/releases/download/v1.18.1.5/s6-overlay-amd64.tar.gz /tmp/

RUN tar xzf /tmp/s6-overlay-amd64.tar.gz -C / \
 && rm -rf /tmp/s6-overlay-amd64.tar.gz

ENV S6_KEEP_ENV=1 \
    S6_CMD_WAIT_FOR_SERVICES=1


ADD https://bitbucket.org/shlomif/perl-io-socket-inet6/raw/8c0bc129340e64e001b989de414cffd3dd1da882/modules/IO-Socket-INET6/lib/IO/Socket/INET6.pm /usr/share/perl5/vendor_perl/IO/Socket/INET6.pm

RUN chmod 444 /usr/share/perl5/vendor_perl/IO/Socket/INET6.pm \

 && apk add --update --no-cache \
        rsyslog \
        amavisd-new=2.10.1-r4 \
        perl-mail-spamassassin=3.4.1-r3 \
        perl-socket6 \
        bzip2 gzip p7zip unarj unrar lz4 cabextract \
        spamassassin=3.4.1-r3 \
        razor=2.85-r3 \
        # original wget required by sa-update
        wget \
        # python is required for pyzor
        python py-pip \
 && pip install --no-cache-dir \
        pyzor==1.0.0 \
 && rm -rf /var/cache/apk/*


COPY rootfs /

RUN chmod +x /etc/services.d/*/run \
 && chmod +x /etc/cont-init.d/* \
 && chmod +x /etc/periodic/daily/* \

 # Configure AMaViS
 && mkdir -p /etc/amavis/conf.d/ \
 && mv /etc/amavisd.conf /etc/amavis/amavisd.conf \
 && ln -s /etc/amavis/amavisd.conf /etc/amavisd.conf \
 && cat /tmp/amavisd.conf.inc >> /etc/amavis/amavisd.conf \
 && rm -rf /tmp/amavisd.conf.inc \<commit_msg>upd $myhostname in amavisd configuration of AMaViS image<commit_after>FROM alpine:3.4


ADD https://github.com/just-containers/s6-overlay/releases/download/v1.18.1.5/s6-overlay-amd64.tar.gz /tmp/

RUN tar xzf /tmp/s6-overlay-amd64.tar.gz -C / \
 && rm -rf /tmp/s6-overlay-amd64.tar.gz

ENV S6_KEEP_ENV=1 \
    S6_CMD_WAIT_FOR_SERVICES=1


ADD https://bitbucket.org/shlomif/perl-io-socket-inet6/raw/8c0bc129340e64e001b989de414cffd3dd1da882/modules/IO-Socket-INET6/lib/IO/Socket/INET6.pm /usr/share/perl5/vendor_perl/IO/Socket/INET6.pm

RUN chmod 444 /usr/share/perl5/vendor_perl/IO/Socket/INET6.pm \

 && apk add --update --no-cache \
        rsyslog \
        amavisd-new=2.10.1-r4 \
        perl-mail-spamassassin=3.4.1-r3 \
        perl-socket6 \
        bzip2 gzip p7zip unarj unrar lz4 cabextract \
        spamassassin=3.4.1-r3 \
        razor=2.85-r3 \
        # original wget required by sa-update
        wget \
        # python is required for pyzor
        python py-pip \
 && pip install --no-cache-dir \
        pyzor==1.0.0 \
 && rm -rf /var/cache/apk/*


COPY rootfs /

RUN chmod +x /etc/services.d/*/run \
 && chmod +x /etc/cont-init.d/* \
 && chmod +x /etc/periodic/daily/* \

 # Configure AMaViS
 && mkdir -p /etc/amavis/conf.d/ \
 && mv /etc/amavisd.conf /etc/amavis/amavisd.conf \
 && ln -s /etc/amavis/amavisd.conf /etc/amavisd.conf \
 && cat /tmp/amavisd.conf.inc >> /etc/amavis/amavisd.conf \
 && rm -rf /tmp/amavisd.conf.inc \
 && sed -i -r 's/^[^\$]*(\$myhostname[^=]*=).*$/\1 `hostname -d`;/g' \
        /etc/amavis/amavisd.conf \
{'fraction_non_alphanumeric': 0.1651469098277609, 'fraction_numerical': 0.05369807497467072, 'mean_word_length': 2.2874583795782466, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '481505', 'n_tokens_mistral': 1360, 'n_tokens_neox': 1273, 'n_words': 194}