<commit_before>FROM alpine:3.4
MAINTAINER <NAME> <<EMAIL>>

ENV DON_PAGES_VERSION=0.0.4 \

    # image_optim dependencies
    ADVANCECOMP_VERSION=1.20 \
    GIFSICLE_VERSION=1.88 \
    JHEAD_VERSION=3.00 \
    JPEGARCHIVE_VERSION=2.1.1 \
    JPEGOPTIM_VERSION=1.4.3 \
    JPEGTRAN_VERSION=9a \
    MOZJPEG_VERSION=3.1 \
    OPTIPNG_VERSION=0.7.5 \
    PNGCRUSH_VERSION=1.8.10 \
    PNGOUT_VERSION=20150319 \
    PNGQUANT_VERSION=2.5.2 \

    # misc
    BUNDLE_SILENCE_ROOT_WARNING=1 \
    CI=true \
    JEKYLL_ENV=production \
    LANGUAGE=en_GB \
    LANG=en_GB.UTF-8 \
    LC_ALL=en_GB

RUN apk add --no-cache --update \
        curl ca-certificates git tar \
        ruby ruby-bundler ruby-json libffi imagemagick \

        # nokogiri
        libxslt \

        # image_optim
        nodejs libjpeg-turbo libpng \

    && apk add --no-cache --update --virtual build-dependencies \
        build-base bash ruby-dev libffi-dev \

        # nokogiri
        libxml2-dev libxslt-dev \

        # jpegoptim
        libjpeg-turbo-dev \

        # advancecomp
        zlib-dev \

        # pngquant
        bash libpng-dev \

        # mozjpeg
        pkgconfig autoconf automake libtool nasm \

    && echo 'gem: --no-document' >> /etc/gemrc \
    && gem update --system && gem update && gem clean \
    && gem install don-pages:$DON_PAGES_VERSION \
        -- --build-flags -​-source https://rails-assets.org \

    && cd /tmp \

    # advancecomp
    && curl -sL https://github.com/amadvance/advancecomp/releases/download/v$ADVANCECOMP_VERSION/advancecomp-$ADVANCECOMP_VERSION.tar.gz | tar zx \
    && cd advancecomp-$ADVANCECOMP_VERSION \
    && ./configure && make && make install \
    && cd .. \

    # gifsicle
    && curl -s https://www.lcdf.org/gifsicle/gifsicle-$GIFSICLE_VERSION.tar.gz | tar zx \
    && cd gifsicle-$GIFSICLE_VERSION \<commit_msg>Testing<commit_after>FROM alpine:3.4
MAINTAINER <NAME> <<EMAIL>>

ENV DON_PAGES_VERSION=0.0.4 \

    # image_optim dependencies
    ADVANCECOMP_VERSION=1.20 \
    GIFSICLE_VERSION=1.88 \
    JHEAD_VERSION=3.00 \
    JPEGARCHIVE_VERSION=2.1.1 \
    JPEGOPTIM_VERSION=1.4.3 \
    JPEGTRAN_VERSION=9a \
    MOZJPEG_VERSION=3.1 \
    OPTIPNG_VERSION=0.7.5 \
    PNGCRUSH_VERSION=1.8.10 \
    PNGOUT_VERSION=20150319 \
    PNGQUANT_VERSION=2.5.2 \

    # misc
    BUNDLE_SILENCE_ROOT_WARNING=1 \
    CI=true \
    JEKYLL_ENV=production \
    LANGUAGE=en_GB \
    LANG=en_GB.UTF-8 \
    LC_ALL=en_GB

RUN apk add --no-cache --update \
        curl ca-certificates git tar \
        ruby ruby-bundler ruby-json libffi imagemagick \

        # nokogiri
        libxslt \

        # image_optim
        nodejs libjpeg-turbo libpng \

    && apk add --no-cache --update --virtual build-dependencies \
        build-base bash ruby-dev libffi-dev \

        # nokogiri
        libxml2-dev libxslt-dev \

        # jpegoptim
        libjpeg-turbo-dev \

        # advancecomp
        zlib-dev \

        # pngquant
        bash libpng-dev \

        # mozjpeg
        pkgconfig autoconf automake libtool nasm \

    && echo 'gem: --no-document' >> /etc/gemrc \
    && gem update --system && gem update json bundler && gem clean \
    && gem install don-pages:$DON_PAGES_VERSION \
        -- --build-flags -​-source https://rails-assets.org \

    && cd /tmp \

    # advancecomp
    && curl -sL https://github.com/amadvance/advancecomp/releases/download/v$ADVANCECOMP_VERSION/advancecomp-$ADVANCECOMP_VERSION.tar.gz | tar zx \
    && cd advancecomp-$ADVANCECOMP_VERSION \
    && ./configure && make && make install \
    && cd .. \

    # gifsicle
    && curl -s https://www.lcdf.org/gifsicle/gifsicle-$GIFSICLE_VERSION.tar.gz | tar zx \
    && cd gifsicle-$GIFSICLE_VERSION \
{'fraction_non_alphanumeric': 0.11884915299811777, 'fraction_numerical': 0.023662274805055124, 'mean_word_length': 2.0667765869744437, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 13, 'https://': 6, 'lorem ipsum': 0, 'www.': 2, 'xml': 2}, 'pii_count': 0, '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': '3465734', 'n_tokens_mistral': 1468, 'n_tokens_neox': 1356, 'n_words': 228}