<commit_before>FROM ruby:2.5-alpine
MAINTAINER <NAME> <<EMAIL>>

ENV workdir /contraq
ENV port 3000

WORKDIR ${workdir}
COPY . ${workdir}

# Install build tools and packages needed for native extensions
RUN apk add --update build-base postgresql-dev
# Install JS runtime. TODO: do we want to use therubyracer instead?
RUN apk add nodejs
# See https://github.com/phusion/passenger-docker/issues/195
RUN apk add tzdata

RUN bundle install

EXPOSE ${port}

CMD ["bundle", "exec", "rails", "server", "-p", "3000", "-b", "0.0.0.0"]<commit_msg>Use entrypoint to automate bundle exec. [#33]<commit_after>FROM ruby:2.5-alpine
MAINTAINER <NAME> <<EMAIL>>

ENV workdir /contraq
ENV port 3000

WORKDIR ${workdir}
COPY . ${workdir}

# Install build tools and packages needed for native extensions
RUN apk add --update build-base postgresql-dev
# Install JS runtime. TODO: do we want to use therubyracer instead?
RUN apk add nodejs
# See https://github.com/phusion/passenger-docker/issues/195
RUN apk add tzdata

RUN bundle install

EXPOSE ${port}

ENTRYPOINT ["bundle", "exec"]
CMD ["rails", "server", "-p", "3000", "-b", "0.0.0.0"]
{'fraction_non_alphanumeric': 0.13303571428571428, 'fraction_numerical': 0.03214285714285714, 'mean_word_length': 4.577114427860696, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '2160516', 'n_tokens_mistral': 410, 'n_tokens_neox': 375, 'n_words': 136}