<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

WORKDIR /app

COPY Gemfile* .ruby-version /app/

RUN bundle install

COPY . /app

RUN bundle exec rails assets:precompile && \
    yarn install --frozen-lockfile && \
    rm -fr /app/log


FROM $base_image

ENV GOVUK_APP_NAME=collections-publisher

WORKDIR /app

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

USER app

HEALTHCHECK CMD curl --silent --fail localhost:$PORT || exit 1

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

WORKDIR /app

COPY Gemfile* .ruby-version /app/

RUN bundle install

COPY . /app

RUN bundle exec rails assets:precompile && \
    yarn install --frozen-lockfile && \
    rm -fr /app/log


FROM $base_image

ENV GOVUK_APP_NAME=collections-publisher

WORKDIR /app

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

USER app

HEALTHCHECK CMD curl --silent --fail localhost:$PORT || exit 1

CMD ["bundle", "exec", "puma"]
{'fraction_non_alphanumeric': 0.121875, 'fraction_numerical': 0.0109375, 'mean_word_length': 3.6079136690647484, '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': '5575116', 'n_tokens_mistral': 496, 'n_tokens_neox': 463, 'n_words': 121}