<commit_before>FROM alpine:latest as production
MAINTAINER isard <<EMAIL>>

RUN apk add --no-cache --virtual .build_deps \
    build-base \
    python3-dev \
    libffi-dev \
    openssl-dev \
    cargo \
    libc-dev \
    libxml2-dev \
    libxslt-dev \
    gcc \
    linux-headers

RUN apk add --no-cache python3 docker py3-libvirt
RUN apk add --no-cache py3-pip
RUN pip3 install --upgrade pip
RUN pip3 install --no-cache-dir setuptools_rust psutil requests docker xmltodict ipython flatten_dict redis rethinkdb==2.3.0.post6
RUN pip3 install --no-cache-dir influxdb-client
RUN pip3 install --no-cache-dir pyyaml
RUN pip3 install --no-cache-dir tabulate pid

RUN apk add --no-cache py3-paramiko

RUN apk del .build_deps

RUN apk add util-linux \
    openssh-client \
    sshpass \
    socat

ADD docker/stats/src /src
WORKDIR /src
CMD ["/bin/sh", "run.sh"]
#CMD ["python3", "run.py"]

FROM production as development
CMD ["/sleep","10000"]
<commit_msg>fix(stats): oldstats container not building becase of unused redis package requirement<commit_after>FROM alpine:3.15 as production
MAINTAINER isard <<EMAIL>>

RUN apk add --no-cache --virtual .build_deps \
    build-base \
    python3-dev \
    libffi-dev \
    openssl-dev \
    cargo \
    libc-dev \
    libxml2-dev \
    libxslt-dev \
    gcc \
    linux-headers

RUN apk add --no-cache python3 docker py3-libvirt
RUN apk add --no-cache py3-pip
RUN pip3 install --upgrade pip
RUN pip3 install --no-cache-dir setuptools_rust psutil requests docker xmltodict ipython flatten_dict rethinkdb==2.3.0.post6
RUN pip3 install --no-cache-dir influxdb-client
RUN pip3 install --no-cache-dir pyyaml
RUN pip3 install --no-cache-dir tabulate pid

RUN apk add --no-cache py3-paramiko

RUN apk del .build_deps

RUN apk add util-linux \
    openssh-client \
    sshpass \
    socat

ADD docker/stats/src /src
WORKDIR /src
CMD ["/bin/sh", "run.sh"]
#CMD ["python3", "run.py"]

FROM production as development
CMD ["/sleep","10000"]

{'fraction_non_alphanumeric': 0.10857432775240994, 'fraction_numerical': 0.0228310502283105, 'mean_word_length': 2.904950495049505, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, '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': '1966982', 'n_tokens_mistral': 730, 'n_tokens_neox': 694, 'n_words': 213}