<commit_before>FROM alpine:3.8

ARG VERSION
ENV VERSION master

ENV uid 1337
ENV gid 1337
ENV user lemur
ENV group lemur


COPY entrypoint /
COPY lemur.conf.py /home/lemur/.lemur/lemur.conf.py
COPY supervisor.conf /
COPY default.conf /etc/nginx/conf.d/

RUN addgroup -S ${group} -g ${gid} && \
    adduser -D -S ${user} -G ${group} -u ${uid} && \
    apk --update add python3 libldap postgresql-client bash nginx supervisor curl && \
    apk --update add --virtual build-dependencies \
                git \
                tar \
                curl \
                python3-dev \
                npm \
                bash \
                musl-dev \
                gcc \
                autoconf \
                automake \
                make \
                nasm  \
                zlib-dev \
                postgresql-dev \
                libressl-dev  \
                libffi-dev \
                cyrus-sasl-dev \
                openldap-dev && \
    mkdir -p /opt/lemur && curl -sSL https://github.com/Netflix/lemur/archive/$VERSION.tar.gz | tar xz -C /opt/lemur --strip-components=1 && \
    pip3 install --upgrade pip && \
    pip3 install --upgrade setuptools && \
    chmod +x /entrypoint && \
    mkdir -p /run/nginx/ && \
    chown -R $user:$group /opt/lemur/
    
WORKDIR /opt/lemur

RUN npm install --unsafe-perm && \
    pip3 install -e . && \
    node_modules/.bin/gulp build && \
    node_modules/.bin/gulp package --urlContextPath=$(urlContextPath) && \
    apk del build-dependencies

WORKDIR /

HEALTHCHECK --interval=12s --timeout=12s --start-period=30s \  
 CMD curl --fail http://localhost:80/api/1/healthcheck | grep -q ok || exit 1

USER root

ENTRYPOINT ["/entrypoint"]

CMD ["/usr/bin/supervisord","-c","supervisor.conf"]<commit_msg>Update Dockerfile<commit_after>FROM alpine:3.8

ARG VERSION
ENV VERSION master

ENV uid 1337
ENV gid 1337
ENV user lemur
ENV group lemur


COPY entrypoint /
COPY lemur.conf.py /home/lemur/.lemur/lemur.conf.py
COPY supervisor.conf /
COPY default.conf /etc/nginx/conf.d/

RUN addgroup -S ${group} -g ${gid} && \
    adduser -D -S ${user} -G ${group} -u ${uid} && \
    apk --update add python3 libldap postgresql-client bash nginx supervisor curl && \
    apk --update add --virtual build-dependencies \
                git \
                tar \
                curl \
                python3-dev \
                npm \
                bash \
                musl-dev \
                gcc \
                autoconf \
                automake \
                make \
                nasm  \
                zlib-dev \
                postgresql-dev \
                libressl-dev  \
                libffi-dev \
                cyrus-sasl-dev \
                openldap-dev && \
    mkdir -p /opt/lemur /home/lemur/.lemur/ && \
    curl -sSL https://github.com/Netflix/lemur/archive/$VERSION.tar.gz | tar xz -C /opt/lemur --strip-components=1 && \
    pip3 install --upgrade pip && \
    pip3 install --upgrade setuptools && \
    chmod +x /entrypoint && \
    mkdir -p /run/nginx/ && \
    touch /home/lemur/.lemur/lemur.log && \
    chown -R $user:$group /opt/lemur/ /home/lemur/.lemur/ && \
    ln -s /home/lemur/.lemur/lemur.log /dev/stdout
    
WORKDIR /opt/lemur

RUN npm install --unsafe-perm && \
    pip3 install -e . && \
    node_modules/.bin/gulp build && \
    node_modules/.bin/gulp package --urlContextPath=$(urlContextPath) && \
    apk del build-dependencies

WORKDIR /

HEALTHCHECK --interval=12s --timeout=12s --start-period=30s \  
 CMD curl --fail http://localhost:80/api/1/healthcheck | grep -q ok || exit 1

USER root

ENTRYPOINT ["/entrypoint"]

CMD ["/usr/bin/supervisord","-c","supervisor.conf"]
{'fraction_non_alphanumeric': 0.13034072471606273, 'fraction_numerical': 0.014061654948620876, 'mean_word_length': 1.5457673778389538, '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': '461407', 'n_tokens_mistral': 1310, 'n_tokens_neox': 1187, 'n_words': 292}