<commit_before>FROM mltsp/base

## install requirements
RUN apt-get update
RUN apt-get install -y wget curl erlang git make

## add user for disco
RUN adduser --system disco --shell /bin/bash

RUN echo root:disco | chpasswd

## passwordless login for disco

RUN mkdir -p /home/disco/.ssh
RUN ssh-keygen -t dsa -f /home/disco/.ssh/id_dsa
RUN cat /home/disco/.ssh/id_dsa.pub > /home/disco/.ssh/authorized_keys
RUN /usr/sbin/sshd && ssh-keyscan -H localhost > /home/disco/.ssh/known_hosts
RUN chown disco -R /home/disco/.ssh

## install disco

RUN git clone --depth 1 https://github.com/discoproject/disco.git /disco
RUN cd /disco &&  make install
RUN chown -R disco /usr/var/disco
ADD disco_8989.config /usr/var/disco/disco_8989.config

## add disco install location to pythonpath
ENV PYTHONPATH /disco/lib

## add disco to runit
RUN mkdir /etc/service/disco
ADD disco.sh /etc/service/disco/run

# clean system
RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
<commit_msg>dockerfile: Add correct entrypoint for base_disco<commit_after>FROM mltsp/base

## install requirements
RUN apt-get update
RUN apt-get install -y wget curl erlang git make

## add user for disco
RUN adduser --system disco --shell /bin/bash

RUN echo root:disco | chpasswd

## passwordless login for disco

RUN mkdir -p /home/disco/.ssh
RUN ssh-keygen -t dsa -f /home/disco/.ssh/id_dsa
RUN cat /home/disco/.ssh/id_dsa.pub > /home/disco/.ssh/authorized_keys
RUN /usr/sbin/sshd && ssh-keyscan -H localhost > /home/disco/.ssh/known_hosts
RUN chown disco -R /home/disco/.ssh

## install disco

RUN git clone --depth 1 https://github.com/discoproject/disco.git /disco
RUN cd /disco &&  make install
RUN chown -R disco /usr/var/disco
ADD disco_8989.config /usr/var/disco/disco_8989.config

## add disco install location to pythonpath
ENV PYTHONPATH /disco/lib

## add disco to runit
RUN mkdir /etc/service/disco
ADD disco.sh /etc/service/disco/run

# clean system
RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

ENTRYPOINT ["/sbin/my_init", "--"]

{'fraction_non_alphanumeric': 0.1240234375, 'fraction_numerical': 0.0087890625, 'mean_word_length': 3.415948275862069, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '5429014', 'n_tokens_mistral': 776, 'n_tokens_neox': 758, 'n_words': 227}