<commit_before># VERSION           0.0.4
# DOCKER-VERSION    1.2.0

FROM node:0.10
MAINTAINER <NAME> <<EMAIL>> (@gbleux)

ENV PATH /usr/local/bin:$PATH
ENV HARAKA_VERSION 2.5.0
ENV HARAKA_HOME /app
ENV HARAKA_LOGS /logs
ENV HARAKA_DATA /data

# node-gyp emits lots of warnings if HOME is set to /
ENV HOME /tmp
RUN npm install -g "Haraka@$HARAKA_VERSION"
RUN haraka --install "$HARAKA_HOME"

# the application is not started as this user,
# but Haraka can be configured to drop its privileges
# via smtp.ini
RUN groupadd -r haraka && \
    useradd --comment "Haraka Server User" \
            --home "$HARAKA_HOME" \
            --shell /bin/false \
            --gid haraka \
            -r \
            -M \
            haraka

COPY docker-entrypoint.sh /usr/local/bin/docker-entrypoint
COPY config /app/config
RUN mkdir -p "$HARAKA_HOME" && \
    mkdir -p "$HARAKA_LOGS" && \
    mkdir -p "$HARAKA_DATA" && \
    chmod -R 0777 "$HARAKA_LOGS" && \
    chmod -R 0777 "$HARAKA_DATA" && \
    chown -R haraka:haraka "$HARAKA_HOME" "$HARAKA_LOGS" "$HARAKA_DATA"

ENV HOME "$HARAKA_HOME"<commit_msg>order Dockerfile instructions to make better use of cache<commit_after># VERSION           0.0.4
# DOCKER-VERSION    1.2.0

FROM node:0.10
MAINTAINER <NAME> <<EMAIL>> (@gbleux)

ENV HARAKA_HOME /app
ENV HARAKA_LOGS /logs
ENV HARAKA_DATA /data
ENV PATH /usr/local/bin:$HARAKA_HOME/node_modules/.bin:$PATH

# the application is not started as this user,
# but Haraka can be configured to drop its privileges
# via smtp.ini
RUN groupadd -r haraka && \
    useradd --comment "Haraka Server User" \
            --home "$HARAKA_HOME" \
            --shell /bin/false \
            --gid haraka \
            -r \
            -M \
            haraka

# node-gyp emits lots of warnings if HOME is set to /
ENV HOME /tmp
ENV HARAKA_VERSION 2.5.0
RUN npm install -g "Haraka@$HARAKA_VERSION"
RUN haraka --install "$HARAKA_HOME"

COPY docker-entrypoint.sh /usr/local/bin/docker-entrypoint
COPY config /app/config
RUN mkdir -p "$HARAKA_HOME" && \
    mkdir -p "$HARAKA_LOGS" && \
    mkdir -p "$HARAKA_DATA" && \
    chmod -R 0777 "$HARAKA_LOGS" && \
    chmod -R 0777 "$HARAKA_DATA" && \
    chown -R haraka:haraka "$HARAKA_HOME" "$HARAKA_LOGS" "$HARAKA_DATA"

ENV HOME "$HARAKA_HOME"
{'fraction_non_alphanumeric': 0.12119876597620097, 'fraction_numerical': 0.01762891141472014, 'mean_word_length': 2.513931888544892, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '161408', 'n_tokens_mistral': 913, 'n_tokens_neox': 858, 'n_words': 243}