<commit_before>FROM smueller18/base:python3-alpine

MAINTAINER smueller18

RUN apk add --no-cache --virtual .build-deps \
          gcc \
          python3-dev \
          musl-dev \
          postgresql-dev \
          curl \
    \
    # install pykafka
    && apk add --no-cache --repository http://dl-cdn.alpinelinux.org/alpine/edge/main/ \
            libressl2.4-libcrypto \
   		      libressl2.4-libssl \
    && apk add --no-cache --repository http://dl-cdn.alpinelinux.org/alpine/edge/testing/ \
            librdkafka \
    && apk add --no-cache --repository http://dl-cdn.alpinelinux.org/alpine/edge/testing/ --virtual .librdkafka \
            librdkafka-dev \
    && pip install pykafka \
    \
    # install avro
    && pip install avro_python3 \
    \
    # install psycopg2
    && apk add --no-cache	libpq \
    && pip install psycopg2 \
    \
    # install flask
    && pip install flask \
    \
    # delete build dependencies
    && apk del .build-deps \
    && apk del .librdkafka \
    \
    #TODO is this command needed?
    && rm -rf /var/cache/apk/*
<commit_msg>add numpy and pykafka-tools<commit_after>FROM smueller18/base:python3-alpine

MAINTAINER smueller18

RUN apk add --no-cache --virtual .build-deps \
          gcc \
          python3-dev \
          musl-dev \
          # for numpy
          linux-headers \
          g++ \
          # end for numpy
          postgresql-dev \
          curl \
          git \
    \
    # install pykafka
    && apk add --no-cache --repository http://dl-cdn.alpinelinux.org/alpine/edge/main/ \
            libressl2.4-libcrypto \
   		      libressl2.4-libssl \
    && apk add --no-cache --repository http://dl-cdn.alpinelinux.org/alpine/edge/testing/ \
            librdkafka \
    && apk add --no-cache --repository http://dl-cdn.alpinelinux.org/alpine/edge/testing/ --virtual .librdkafka \
            librdkafka-dev \
    && pip install pykafka \
    \
    # install scientific
    && ln -s /usr/include/locale.h /usr/include/xlocale.h \
    && pip install numpy \
    \
    # install avro
    && pip install avro_python3 \
    \
    # install psycopg2
    && apk add --no-cache	libpq \
    && pip install psycopg2 \
    \
    # install flask
    && pip install flask \
    \
    # install pykafka-tools
    && pip install git+https://github.com/smueller18/pykafka-tools.git@0.1.7#egg=pykafka-tools --process-dependency-links --allow-all-external \
    \
    # delete build dependencies
    && apk del .build-deps \
    && apk del .librdkafka \
    \
    #TODO is this command needed?
    && rm -rf /var/cache/apk/*

{'fraction_non_alphanumeric': 0.12640123695400077, 'fraction_numerical': 0.01198299188248937, 'mean_word_length': 1.6489252814738997, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 1, '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': '5603117', 'n_tokens_mistral': 924, 'n_tokens_neox': 886, 'n_words': 181}