<commit_before>FROM node:0.10
MAINTAINER <NAME> <<EMAIL>>, <NAME> <<EMAIL>>

ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update \
&&  apt-get install --quiet --assume-yes --no-install-recommends \
      build-essential \
      curl \
      nano \
      sudo \
      imagemagick \
      sqlite3 \
&&  apt-get clean \
&&  rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

# Install CoffeeScript & Cozy Controller
RUN npm install -g \
    coffee-script \
    cozy-controller@2.0.30 \
    cozy-monitor@1.2.27

# Create Cozy users, without home directories.
RUN useradd -M cozy \
&&  useradd -M cozy-data-system \
&&  useradd -M cozy-home


# Need ENV VARS:
ENV NODE_ENV production \
    COUCH_HOST couchdb \
    COUCH_PORT 5984 \
    INDEXER_HOST dataindexer \
    INDEXER_PORT 9102

# Expose port
EXPOSE 9002 9104

VOLUME ["/usr/local/cozy/"]

ADD init.sh /usr/local/bin/cozy-init.sh

WORKDIR /usr/local/lib/node_modules/cozy-controller/build/

CMD [ "node", "server.js" ]<commit_msg>Fix problem with environment variables<commit_after>FROM node:0.10
MAINTAINER <NAME> <<EMAIL>>, <NAME> <<EMAIL>>

ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update \
&&  apt-get install --quiet --assume-yes --no-install-recommends \
      build-essential \
      curl \
      nano \
      sudo \
      imagemagick \
      sqlite3 \
&&  apt-get clean \
&&  rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

# Install CoffeeScript & Cozy Controller
RUN npm install -g \
    coffee-script \
    cozy-controller@2.0.30 \
    cozy-monitor@1.2.27

# Create Cozy users, without home directories.
RUN useradd -M cozy \
&&  useradd -M cozy-data-system \
&&  useradd -M cozy-home


# Need ENV VARS:
ENV NODE_ENV=production \
	COUCH_HOST=couchdb \
	COUCH_PORT=5984 \
	INDEXER_HOST=dataindexer \
	INDEXER_PORT=9102

# Expose port
EXPOSE 9002 9104

VOLUME ["/usr/local/cozy/"]

ADD init.sh /usr/local/bin/cozy-init.sh

WORKDIR /usr/local/lib/node_modules/cozy-controller/build/

CMD [ "node", "server.js" ]
{'fraction_non_alphanumeric': 0.1321518987341772, 'fraction_numerical': 0.028354430379746835, 'mean_word_length': 2.700374531835206, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, 'https://': 0, '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': '4243612', 'n_tokens_mistral': 797, 'n_tokens_neox': 748, 'n_words': 173}