<commit_before>FROM alpine:3.6
MAINTAINER <NAME> "<EMAIL>"

ARG capnp_version=0.6.1
ARG data_port=5353
ARG management_port=5354

ENV capnp_version=$capnp_version
ENV data_port=$data_port
ENV management_port=$management_port
ENV csaopt_dir=/opt/csaopt-zmq

RUN apk update && apk add linux-headers git make curl gcc g++ python3 libzmq python3-dev
RUN curl -O https://capnproto.org/capnproto-c++-$capnp_version.tar.gz &&\
    tar zxf capnproto-c++-$capnp_version.tar.gz &&\
    cd capnproto-c++-$capnp_version &&\
    ./configure && make -j6 && make install && rm -r *


RUN git clone https://github.com/d53dave/csaopt-zmq.git $csaopt_dir

WORKDIR $csaopt_dir

RUN pip3 install pipenv &&\
    pipenv install

RUN apk git del linux-headers make gcc g++ python3-dev

RUN pipenv run csaopt-zmq --port-data $data_port --port-management $management_port

<commit_msg>Removed gcc from apk install<commit_after>FROM alpine:3.6
MAINTAINER <NAME> "<EMAIL>"

ARG capnp_version=0.6.1
ARG data_port=5353
ARG management_port=5354

ENV capnp_version=$capnp_version
ENV data_port=$data_port
ENV management_port=$management_port
ENV csaopt_dir=/opt/csaopt-zmq

RUN apk update && apk add linux-headers git make curl g++ python3 libzmq python3-dev
RUN curl -O https://capnproto.org/capnproto-c++-$capnp_version.tar.gz &&\
    tar zxf capnproto-c++-$capnp_version.tar.gz &&\
    cd capnproto-c++-$capnp_version &&\
    ./configure && make -j6 && make install && rm -r *


RUN git clone https://github.com/d53dave/csaopt-zmq.git $csaopt_dir

WORKDIR $csaopt_dir

RUN pip3 install pipenv &&\
    pipenv install

RUN apk git del linux-headers make g++ python3-dev

RUN pipenv run csaopt-zmq --port-data $data_port --port-management $management_port


{'fraction_non_alphanumeric': 0.11942028985507247, 'fraction_numerical': 0.02318840579710145, 'mean_word_length': 4.310769230769231, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 4, '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': '2988349', 'n_tokens_mistral': 664, 'n_tokens_neox': 637, 'n_words': 160}