<commit_before>FROM ruby:2.1

MAINTAINER <NAME> <orcid.org/0000-0003-2130-0865>, <NAME>

RUN apt-get update -qq && \
    apt-get install -y --no-install-recommends libssl-dev build-essential git libreadline-dev \
            libxml++2.6-dev openjdk-7-jdk libsqlite3-dev sqlite3 libcurl4-gnutls-dev \
            poppler-utils libreoffice libmagick++-dev libxslt1-dev libpq-dev ruby2.1 ruby2.1-dev \
            nodejs build-essential mysql-client postgresql-client nginx \
            telnet vim links && \
    apt-get clean && \
    rm -rf /var/lib/apt/lists/*

RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app
ENV RAILS_ENV=production

# Bundle install throw errors if Gemfile has been modified since Gemfile.lock
COPY Gemfile* ./
RUN bundle config --global frozen 1 && \
    bundle install 

# App code (picky about what gets copied to make caching of the assets:precompile more likely)
COPY . .

# SQLite Database (for asset compilation)
RUN mkdir sqlite3-db && \
    cp docker/database.docker.sqlite3.yml config/database.yml && \
    bundle exec rake db:setup
RUN bundle exec rake assets:precompile

# Docker specific configs
COPY docker docker
COPY docker/nginx.conf /etc/nginx/sites-available/default

# Cleanup
RUN rm -rf /tmp/* /var/tmp/*

# Network
EXPOSE 80

# Shared
VOLUME ["/usr/src/app/filestore", "/usr/src/app/sqlite3-db"]

CMD ["docker/entrypoint.sh"]<commit_msg>Docker - cleaner paths to app<commit_after>FROM ruby:2.1

MAINTAINER <NAME> <orcid.org/0000-0003-2130-0865>, <NAME>

ENV APP_DIR /seek
ENV RAILS_ENV=production

RUN apt-get update -qq && \
    apt-get install -y --no-install-recommends libssl-dev build-essential git libreadline-dev \
            libxml++2.6-dev openjdk-7-jdk libsqlite3-dev sqlite3 libcurl4-gnutls-dev \
            poppler-utils libreoffice libmagick++-dev libxslt1-dev libpq-dev ruby2.1 ruby2.1-dev \
            nodejs build-essential mysql-client postgresql-client nginx \
            telnet vim links && \
    apt-get clean && \
    rm -rf /var/lib/apt/lists/*

RUN mkdir -p $APP_DIR

WORKDIR $APP_DIR

# Bundle install throw errors if Gemfile has been modified since Gemfile.lock
COPY Gemfile* ./
RUN bundle config --global frozen 1 && \
    bundle install 

# App code (picky about what gets copied to make caching of the assets:precompile more likely)
COPY . .

# SQLite Database (for asset compilation)
RUN mkdir sqlite3-db && \
    cp docker/database.docker.sqlite3.yml config/database.yml && \
    bundle exec rake db:setup

RUN bundle exec rake assets:precompile

# Docker specific configs
COPY docker/nginx.conf /etc/nginx/sites-available/default

# Cleanup
RUN rm -rf /tmp/* /var/tmp/*

# Network
EXPOSE 80

# Shared
VOLUME ["/seek/filestore", "/seek/sqlite3-db"]

CMD ["docker/entrypoint.sh"]
{'fraction_non_alphanumeric': 0.10893246187363835, 'fraction_numerical': 0.025417574437182282, 'mean_word_length': 3.0814814814814815, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '1935964', 'n_tokens_mistral': 1008, 'n_tokens_neox': 922, 'n_words': 267}