<commit_before># Use the Latest LTS Ubuntu Version
FROM ubuntu:16.04

MAINTAINER HONK Technologies, Inc.

# Curl Nonsense to get NodeJS 6.X (LTS) Version
RUN apt-get -yy update && apt-get -yy install curl \
&& (curl -sL https://deb.nodesource.com/setup_6.x | bash -) \
&& apt-get -yy install \
    build-essential \
    git \
    ruby-dev \
    zlib1g-dev \
    liblzma-dev \
    nginx \
    nodejs \
    file \
    libmagickwand-dev \
    libcurl4-openssl-dev \
    libpq-dev \
    rsyslog \
&& rm -rf /var/lib/apt/lists/*

# Copy our nginx config to the right place
COPY nginx.conf /etc/nginx/nginx.conf

# Port corresponding to the port we send traffic to in our nginx.conf
ENV PORT=5000

# Pre-Install the Latest Bundler and Rails 4.2.X for a quicker bundle install later
# -N disables document generation
RUN gem install bundler -v "~> 1.13" -N
RUN gem install rails -v "~> 4.2" -N

# Set the Working Directory for All Commands that Follow
WORKDIR /app

# Copy Our Default startup script
COPY start.sh bin/

# Set our Default Action
CMD ['bin/start.sh']

# ONBUILD section:
# Copy Gemfile & Gemfile.lock, then run bundle install, then uninstall build-essential to thin out the image
ONBUILD COPY Gemfile .
ONBUILD COPY Gemfile.lock .
ONBUILD RUN bundle install --with=production --without="development test"
ONBUILD RUN apt-get uninstall build-essential<commit_msg>eek, wrong command all around<commit_after># Use the Latest LTS Ubuntu Version
FROM ubuntu:16.04

MAINTAINER HONK Technologies, Inc.

# Curl Nonsense to get NodeJS 6.X (LTS) Version
RUN apt-get -yy update && apt-get -yy install curl \
&& (curl -sL https://deb.nodesource.com/setup_6.x | bash -) \
&& apt-get -yy install \
    build-essential \
    git \
    ruby-dev \
    zlib1g-dev \
    liblzma-dev \
    nginx \
    nodejs \
    file \
    libmagickwand-dev \
    libcurl4-openssl-dev \
    libpq-dev \
    rsyslog \
&& rm -rf /var/lib/apt/lists/*

# Copy our nginx config to the right place
COPY nginx.conf /etc/nginx/nginx.conf

# Port corresponding to the port we send traffic to in our nginx.conf
ENV PORT=5000

# Pre-Install the Latest Bundler and Rails 4.2.X for a quicker bundle install later
# -N disables document generation
RUN gem install bundler -v "~> 1.13" -N
RUN gem install rails -v "~> 4.2" -N

# Set the Working Directory for All Commands that Follow
WORKDIR /app

# Copy Our Default startup script
COPY start.sh bin/

# Set our Default Action
CMD ['bin/start.sh']

# ONBUILD section:
# Copy Gemfile & Gemfile.lock, then run bundle install, then uninstall build-essential to thin out the image
ONBUILD COPY Gemfile .
ONBUILD COPY Gemfile.lock .
ONBUILD RUN bundle install --with=production --without="development test"
ONBUILD RUN apt-get -y remove build-essential && apt autoremove
{'fraction_non_alphanumeric': 0.09516943042537851, 'fraction_numerical': 0.0136986301369863, 'mean_word_length': 3.057017543859649, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, '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': '280440', 'n_tokens_mistral': 983, 'n_tokens_neox': 902, 'n_words': 340}