<commit_before>FROM ruby:2.3

# add dumb-init for entrypoint to apps
COPY support/docker/dumb-init_1.0.1_amd64 /usr/local/bin/dumb-init
RUN chmod +x /usr/local/bin/dumb-init

# set timezone on container
ENV TZ=America/Chicago
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone

# throw errors if Gemfile has been modified since Gemfile.lock
RUN bundle config --global frozen 1

RUN mkdir -p /usr/src/inkplate /usr/src/inkplate/config /usr/src/inkplate/log
WORKDIR /usr/src/inkplate

COPY app/ app/
COPY lib/ lib/
COPY db/ db/
COPY config/ config/
COPY bootstrap.rb config.ru Gemfile Gemfile.lock Rakefile ./

ENV RACK_ENV production
ENV PORT 3000
ENV SSL_PORT 3001

EXPOSE 3000
EXPOSE 3001

RUN bundle install --without development test

ENTRYPOINT [ "dumb-init" ]<commit_msg>set host on docker to 0.0.0.0<commit_after>FROM ruby:2.3

# add dumb-init for entrypoint to apps
COPY support/docker/dumb-init_1.0.1_amd64 /usr/local/bin/dumb-init
RUN chmod +x /usr/local/bin/dumb-init

# set timezone on container
ENV TZ=America/Chicago
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone

# throw errors if Gemfile has been modified since Gemfile.lock
RUN bundle config --global frozen 1

RUN mkdir -p /usr/src/inkplate /usr/src/inkplate/config /usr/src/inkplate/log
WORKDIR /usr/src/inkplate

COPY app/ app/
COPY lib/ lib/
COPY db/ db/
COPY config/ config/
COPY bootstrap.rb config.ru Gemfile Gemfile.lock Rakefile ./

ENV RACK_ENV production
ENV HOST 0.0.0.0
ENV PORT 3000
ENV SSL_PORT 3001

EXPOSE 3000
EXPOSE 3001

RUN bundle install --without development test

ENTRYPOINT [ "dumb-init" ]
{'fraction_non_alphanumeric': 0.09993906154783669, 'fraction_numerical': 0.03412553321145643, 'mean_word_length': 3.678062678062678, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, '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': '439600', 'n_tokens_mistral': 648, 'n_tokens_neox': 578, 'n_words': 190}