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

ENV APP_HOME /sombra
RUN mkdir $APP_HOME
WORKDIR $APP_HOME

# unfortunately we need native extensions, so compilers
RUN apk add --update ruby-dev build-base linux-headers

ADD Gemfile $APP_HOME/
ADD Gemfile.lock $APP_HOME/
RUN bundle install

ADD . $APP_HOME

# on alpine we need to create www-data
RUN set -x \
    && addgroup -g 82 -S www-data \
    && adduser -u 82 -D -S -G www-data www-data
# chown files for www-data write access. unicorn needs Gemfile.lock
RUN chown -R www-data:www-data tmp/ log/ Gemfile.lock<commit_msg>[CHANGE] more sane dockerfile;<commit_after>FROM ruby:2.3-alpine
MAINTAINER <NAME> <<EMAIL>>

ENV APP_HOME /sombra
RUN mkdir $APP_HOME
WORKDIR $APP_HOME

# on alpine we need to create www-data
RUN set -x \
    && addgroup -g 82 -S www-data \
    && adduser -u 82 -D -S -G www-data www-data

# unfortunately we need native extensions, so compilers
RUN apk add --update build-base linux-headers ruby-dev

ADD Gemfile $APP_HOME/
ADD Gemfile.lock $APP_HOME/
RUN bundle install --clean

# remove apk packages again
RUN apk del --purge build-base linux-headers ruby-dev

ADD . $APP_HOME

# chown files for www-data write access. unicorn needs Gemfile.lock
RUN chown -R www-data:www-data tmp/ log/ Gemfile.lock
{'fraction_non_alphanumeric': 0.09791827293754819, 'fraction_numerical': 0.009252120277563608, 'mean_word_length': 3.5069444444444446, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 14, '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': '6452925', 'n_tokens_mistral': 478, 'n_tokens_neox': 448, 'n_words': 168}