<commit_before>FROM node:6-alpine

WORKDIR /app

RUN apk update && \
  apk --no-cache add tar curl mc git nano screen && \
  curl -L https://github.com/jishi/node-sonos-http-api/archive/master.tar.gz | tar xz --strip-components=1 -C /app && \
  mkdir cache && \
#  ln -s settings/settings.json && \
#  chown -R node:node static cache && \
  npm install --production && \
  rm -rf /tmp/* /root/.npm

RUN mkdir -p /app/cache && \
mkdir -p /app/static && \
mkdir -p /app/static/clips && \
mkdir -p /app/presets && \
mkdir -p /app/settings

ADD settings.json /app/settings/settings.json
ADD presets.json /app/presets/presets.json
ADD start.sh /app/start.sh 

RUN chmod -v +x /app/start.sh
 
EXPOSE 5005
VOLUME /app 

#USER node

HEALTHCHECK --interval=3m --timeout=2s \
  CMD curl -LSs http://localhost:5005 || exit 1

#CMD npm start
screen -dm -S mySonosAPI /app/start.sh

<commit_msg>Screen fix<commit_after>FROM node:6-alpine

WORKDIR /app

RUN apk update && \
  apk --no-cache add tar curl mc git nano screen && \
  curl -L https://github.com/jishi/node-sonos-http-api/archive/master.tar.gz | tar xz --strip-components=1 -C /app && \
  mkdir cache && \
#  ln -s settings/settings.json && \
#  chown -R node:node static cache && \
  npm install --production && \
  rm -rf /tmp/* /root/.npm

RUN mkdir -p /app/cache && \
mkdir -p /app/static && \
mkdir -p /app/static/clips && \
mkdir -p /app/presets && \
mkdir -p /app/settings

ADD settings.json /app/settings/settings.json
ADD presets.json /app/presets/presets.json
ADD start.sh /app/start.sh 

RUN chmod -v +x /app/start.sh
 
EXPOSE 5005
VOLUME /app 

#USER node

HEALTHCHECK --interval=3m --timeout=2s \
  CMD curl -LSs http://localhost:5005 || exit 1

#CMD npm start
CMD screen -dm -S mySonosAPI /app/start.sh


{'fraction_non_alphanumeric': 0.15410764872521246, 'fraction_numerical': 0.014730878186968839, 'mean_word_length': 2.6262833675564683, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '4836010', 'n_tokens_mistral': 709, 'n_tokens_neox': 659, 'n_words': 190}