<commit_before>FROM ruby:2.7.3

ENV APP_PATH /app/

ENV LANGUAGE en_US:en  
ENV LANG C.UTF-8  
ENV LC_ALL C.UTF-8

WORKDIR $APP_PATH

RUN apt-get update -y && apt-get install -y --no-install-recommends postgresql-client 

COPY Gemfile Gemfile.lock ./

RUN gem install bundler
RUN bundle install

ADD . $APP_PATH

RUN bin/install_swagger

COPY docker-entrypoint.sh /usr/bin/
ENTRYPOINT ["docker-entrypoint.sh"]

EXPOSE 9292<commit_msg>Install postgres-client version 13 in Docker environment<commit_after>FROM ruby:2.7.3

ENV APP_PATH /app/

ENV LANGUAGE en_US:en  
ENV LANG C.UTF-8  
ENV LC_ALL C.UTF-8

WORKDIR $APP_PATH

RUN apt-get update && apt-get install -y lsb-release

RUN curl -Ss https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add - \
    && echo "deb http://apt.postgresql.org/pub/repos/apt/ `lsb_release -cs`-pgdg main" | tee  /etc/apt/sources.list.d/pgdg.list \
    && apt-get update -qqy \
    && apt-get install -y --no-install-recommends postgresql-client-13

COPY Gemfile Gemfile.lock ./

RUN gem install bundler
RUN bundle install

ADD . $APP_PATH

RUN bin/install_swagger

COPY docker-entrypoint.sh /usr/bin/
ENTRYPOINT ["docker-entrypoint.sh"]

EXPOSE 9292
{'fraction_non_alphanumeric': 0.1134453781512605, 'fraction_numerical': 0.020168067226890758, 'mean_word_length': 3.411111111111111, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 1, 'lorem ipsum': 0, 'www.': 1, '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': '2421120', 'n_tokens_mistral': 481, 'n_tokens_neox': 450, 'n_words': 117}