<commit_before>FROM ruby:2.4.1-alpine

ENV RAILS_ENV production
ENV RACK_ENV production
ENV SECRET_KEY_BASE <KEY>

RUN mkdir /app

WORKDIR /tmp
COPY Gemfile Gemfile
COPY Gemfile.lock Gemfile.lock

RUN echo "@edge https://nl.alpinelinux.org/alpine/edge/main" >> /etc/apk/repositories \
 && BUILD_DEPS=" \
    postgresql-dev \
    libxml2-dev \
    libxslt-dev \
    build-base" \
 && apk -U upgrade && apk add \
    $BUILD_DEPS \
    nodejs@edge \
    nodejs-npm@edge \
    cyrus-sasl-dev \
    linux-headers \
    libpq \
    libxml2 \
    libxslt \
    libgsasl \
    file \
    git \
    imagemagick@edge \
    tzdata \
 && bundle install --jobs 20 --retry 5 --without test development \
 && update-ca-certificates \
 && apk del $BUILD_DEPS \<commit_msg>Prepare yarn to compile webpack.<commit_after>FROM ruby:2.4.1-alpine

ENV RAILS_ENV production
ENV RACK_ENV production
ENV SECRET_KEY_BASE <KEY>

RUN mkdir /app

WORKDIR /tmp
COPY Gemfile Gemfile
COPY Gemfile.lock Gemfile.lock

RUN echo "@edge https://nl.alpinelinux.org/alpine/edge/main" >> /etc/apk/repositories \
 && BUILD_DEPS=" \
    postgresql-dev \
    libxml2-dev \
    libxslt-dev \
    build-base" \
 && apk -U upgrade && apk add \
    $BUILD_DEPS \
    nodejs@edge \
    nodejs-npm@edge \
    cyrus-sasl-dev \
    linux-headers \
    libpq \
    libxml2 \
    libxslt \
    libgsasl \
    file \
    git \
    imagemagick@edge \
    tzdata \
 && bundle install --jobs 20 --retry 5 --without test development \
 && npm install -g yarn \
 && update-ca-certificates \
 && apk del $BUILD_DEPS \
{'fraction_non_alphanumeric': 0.11753371868978806, 'fraction_numerical': 0.010276172125883108, 'mean_word_length': 2.336188436830835, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7072252', 'n_tokens_mistral': 620, 'n_tokens_neox': 581, 'n_words': 134}