<commit_before>FROM python:3.6-alpine

MAINTAINER <EMAIL>
ENV HOME=/app \
    WORKERS=2

RUN set -ex \
        && apk add --no-cache \
                libpq \
                libmemcached \
                libjpeg-turbo \
        && pip3 install --upgrade --no-cache-dir pip

WORKDIR $HOME

COPY . $HOME
RUN set -ex \
        && apk add --no-cache --virtual .build-deps \
                musl-dev \
                gcc \
                postgresql-dev \
                libmemcached-dev \
                libjpeg-turbo-dev \
                libwebp-dev \
                zlib-dev \
                cyrus-sasl-dev \
        && pip3 install --no-cache-dir -r requirements.txt \
        && apk del .build-deps

RUN adduser -D -s /bin/false app
RUN chown -R app:app $HOME/*
USER app
CMD gunicorn naxos.wsgi:application -w $WORKERS -b :5000<commit_msg>refactor(forum/Dockerfile): Use build-base alpine pkg<commit_after>FROM python:3.6-alpine

MAINTAINER <EMAIL>
ENV HOME=/app \
    WORKERS=2

RUN set -ex \
        && apk add --no-cache \
                libpq \
                libmemcached \
                libjpeg-turbo \
        && pip3 install --upgrade --no-cache-dir pip

WORKDIR $HOME

COPY . $HOME
RUN set -ex \
        && apk add --no-cache --virtual .build-deps \
                build-base \
                postgresql-dev \
                libmemcached-dev \
                libjpeg-turbo-dev \
                libwebp-dev \
                zlib-dev \
                cyrus-sasl-dev \
        && pip3 install --no-cache-dir -r requirements.txt \
        && apk del .build-deps

RUN adduser -D -s /bin/false app
RUN chown -R app:app $HOME/*
USER app
CMD gunicorn naxos.wsgi:application -w $WORKERS -b :5000
{'fraction_non_alphanumeric': 0.10968494749124855, 'fraction_numerical': 0.010501750291715286, 'mean_word_length': 1.2805851063829787, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '5777261', 'n_tokens_mistral': 608, 'n_tokens_neox': 546, 'n_words': 140}