<commit_before>ARG base_image=ghcr.io/alphagov/govuk-ruby-base:3.1.2
ARG builder_image=ghcr.io/alphagov/govuk-ruby-builder:3.1.2

FROM $builder_image AS builder

RUN mkdir /app

WORKDIR /app

COPY Gemfile* .ruby-version ./
RUN bundle install

COPY . /app
RUN bundle exec rails assets:precompile && rm -rf /app/log


FROM $base_image

ENV GOVUK_APP_NAME=frontend

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

USER app
WORKDIR /app

CMD bundle exec puma<commit_msg>Lint: use list syntax for Dockerfile CMD.<commit_after>ARG base_image=ghcr.io/alphagov/govuk-ruby-base:3.1.2
ARG builder_image=ghcr.io/alphagov/govuk-ruby-builder:3.1.2

FROM $builder_image AS builder

RUN mkdir /app

WORKDIR /app

COPY Gemfile* .ruby-version ./
RUN bundle install

COPY . /app
RUN bundle exec rails assets:precompile && rm -rf /app/log


FROM $base_image

ENV GOVUK_APP_NAME=frontend

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

USER app
WORKDIR /app

CMD ["bundle", "exec", "puma"]
{'fraction_non_alphanumeric': 0.11954459203036052, 'fraction_numerical': 0.011385199240986717, 'mean_word_length': 3.9299065420560746, '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': '1001843', 'n_tokens_mistral': 414, 'n_tokens_neox': 393, 'n_words': 103}