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

ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update && apt-get install --quiet --assume-yes --no-install-recommends \
    build-essential \
    python-pip \
    curl \
    nano \
    sudo \
    && apt-get clean

# Clean APT cache for a lighter image
RUN rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

RUN pip install supervisor

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

# Configure Supervisor.
ADD supervisor/supervisord.conf /etc/supervisord.conf
RUN mkdir -p /var/log/supervisor \
&& chmod 774 /var/log/supervisor \
&& /usr/local/bin/supervisord -c /etc/supervisord.conf

# 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
ENV COUCH_HOST couchdb
ENV COUCH_PORT 5984
ENV INDEXER_HOST dataindexer
ENV INDEXER_PORT 9102

# Install Cozy Monitor
RUN git clone https://github.com/cozy/cozy-monitor /usr/cozy/cozy-monitor
RUN cd /usr/cozy/cozy-monitor; npm install --production

# Install Cozy Controller
# RUN git clone https://github.com/cozy/cozy-controller /usr/local/lib/node_modules/cozy-controller
# RUN cd /usr/local/lib/node_modules/cozy-controller; npm install --production

# Import Supervisor configuration files.
ADD supervisor/cozy-controller.conf /etc/supervisor/conf.d/cozy-controller.conf
RUN chmod 0644 /etc/supervisor/conf.d/*

#Add file for backup/restore
ADD sh/backup.sh /home/backup.sh
ADD sh/restore.sh /home/restore.sh

#Expose Proxy port
# EXPOSE 9104

ADD sh/run.sh /home/run.sh
WORKDIR /home
CMD ["/bin/sh", "run.sh"]<commit_msg>Optimization with volumes<commit_after>FROM node:0.10
MAINTAINER <NAME> <<EMAIL>>

ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update && apt-get install --quiet --assume-yes --no-install-recommends \
    build-essential \
    python-pip \
    curl \
    nano \
    sudo \
    && apt-get clean

# Clean APT cache for a lighter image
RUN rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

RUN pip install supervisor

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

# Configure Supervisor.
ADD supervisor/supervisord.conf /etc/supervisord.conf
RUN mkdir -p /var/log/supervisor \
&& chmod 774 /var/log/supervisor \
&& /usr/local/bin/supervisord -c /etc/supervisord.conf

# 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
ENV COUCH_HOST couchdb
ENV COUCH_PORT 5984
ENV INDEXER_HOST dataindexer
ENV INDEXER_PORT 9102

# Install Cozy Monitor
RUN git clone https://github.com/cozy/cozy-monitor /usr/cozy/cozy-monitor
RUN cd /usr/cozy/cozy-monitor; npm install --production

# Install Cozy Controller
# RUN git clone https://github.com/cozy/cozy-controller /usr/local/lib/node_modules/cozy-controller
# RUN cd /usr/local/lib/node_modules/cozy-controller; npm install --production

# Import Supervisor configuration files.
ADD supervisor/cozy-controller.conf /etc/supervisor/conf.d/cozy-controller.conf
RUN chmod 0644 /etc/supervisor/conf.d/*

#Add file for backup/restore
ADD sh/backup.sh /home/backup.sh
ADD sh/restore.sh /home/restore.sh

#Expose Proxy port
# EXPOSE 9104

ADD sh/run.sh /home/run.sh
WORKDIR /home
VOLUME ["/usr/local/cozy/"]
CMD ["/bin/sh", "run.sh"]
{'fraction_non_alphanumeric': 0.11565420560747663, 'fraction_numerical': 0.012850467289719626, 'mean_word_length': 3.5006570302233904, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 4, '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': '2669526', 'n_tokens_mistral': 1249, 'n_tokens_neox': 1181, 'n_words': 325}