<commit_before>FROM ruby:2.2.3
RUN apt-get update -qq && apt-get install -y build-essential libpq-dev
RUN curl -sL https://deb.nodesource.com/setup_4.x | bash -
RUN apt-get install -y nodejs

RUN mkdir /api
WORKDIR /api

RUN npm install -g gulp bower

COPY Gemfile /api/
COPY Gemfile.lock /api/

RUN bundle install --without development test
COPY . /api/

RUN bower install --allow-root --config.interactive=false
RUN npm install --production
RUN gulp build
<commit_msg>updated Dockerfile to work with Docker Hub auto-build (hopefully)<commit_after>FROM ruby:2.2.3
RUN apt-get update -qq && apt-get install -y build-essential libpq-dev
RUN curl -sL https://deb.nodesource.com/setup_4.x | bash -
RUN apt-get install -y nodejs

RUN mkdir /api
WORKDIR /api

ENV RACK_ENV=docker
ENV RAILS_ENV=docker
ENV DEVISE_SECRET_KEY=978e423d107dc2277f2987787a2f8ccd5ee0dcedf40f05f0188d732516a79559a7434feb56f35f31376f1b12325ac28ea540c8387fba83cb070e43af271ff9e9
ENV SECRET_KEY_BASE=<KEY>
ENV DATABASE_URL=postgres://username:@localhost:5432/jellyfish

COPY Gemfile /api/
COPY Gemfile.lock /api/

COPY . /api/

RUN npm install -g gulp bower

RUN bundle install --without development test
RUN bower install --allow-root --config.interactive=false
RUN npm install --production
RUN gulp build

# Need to populate the DB

CMD bundle exec rails s -p 3000 -b '0.0.0.0'

{'fraction_non_alphanumeric': 0.08982925018559762, 'fraction_numerical': 0.07646622123236822, 'mean_word_length': 4.224806201550388, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 1, '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': '4247136', 'n_tokens_mistral': 569, 'n_tokens_neox': 489, 'n_words': 148}