<commit_before># Alpine is a lightweight Linux
FROM mhart/alpine-node:6

# Update latest available packages
RUN apk update && \
    apk add ffmpeg && \
    apk add git && \
    rm -rf /var/cache/apk/* /tmp/* && \
    adduser -D app && \
    mkdir /tmp/torrent-stream && \
    chown app:app /tmp/torrent-stream && \
    npm install -g grunt-cli bower

WORKDIR /home/app
COPY . .
RUN chown app:app /home/app -R

# run as user app from here on
USER app
RUN npm install && \
    bower install && \
    grunt build

VOLUME [ "/tmp/torrent-stream" ]<commit_msg>Use official node image in Dockerfile, cleaned up Dockerfile<commit_after>FROM node:6-alpine

# Update latest available packages,
# add 'app' user, and make temp directory
RUN apk --no-cache add ffmpeg git && \
    npm install -g grunt-cli bower && \
    adduser -D app && \
    mkdir /tmp/torrent-stream && \
    chown app:app /tmp/torrent-stream

WORKDIR /home/app
COPY . .
RUN chown app:app /home/app -R

# run as user app from here on
USER app
RUN npm install && \
    bower install && \
    grunt build

VOLUME [ "/tmp/torrent-stream" ]
{'fraction_non_alphanumeric': 0.1177007299270073, 'fraction_numerical': 0.0018248175182481751, 'mean_word_length': 2.584967320261438, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '553766', 'n_tokens_mistral': 393, 'n_tokens_neox': 374, 'n_words': 130}