<commit_before>FROM ruby:alpine

RUN apk update \
    && apk add --virtual build-dependencies \
        build-base \
    && true

LABEL io.whalebrew.name 'rubocop'
LABEL io.whalebrew.config.working_dir '/workdir'
WORKDIR /workdir

RUN gem install rubocop -v 0.64.0
RUN gem install rubocop-rspec -v 1.32.0

ENTRYPOINT ["rubocop"]
CMD ["--help"]<commit_msg>switch rubocop to multi stage build<commit_after>FROM ruby:alpine as builder

RUN apk update \
    && apk add --virtual build-dependencies \
        build-base \
    && true

RUN gem install rubocop -v 0.64.0
RUN gem install rubocop-rspec -v 1.32.0

FROM ruby:alpine

LABEL io.whalebrew.name 'rubocop'
LABEL io.whalebrew.config.working_dir '/workdir'
WORKDIR /workdir

COPY --from=builder /usr/local/ /usr/local/

ENTRYPOINT ["rubocop"]
CMD ["--help"]
{'fraction_non_alphanumeric': 0.11910669975186104, 'fraction_numerical': 0.019851116625310174, 'mean_word_length': 3.2925531914893615, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, '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': '6393384', 'n_tokens_mistral': 305, 'n_tokens_neox': 291, 'n_words': 82}