<commit_before># Clara Dockerfile
# Copyright 2017 (c) Clara
# Licensed under MIT

FROM ubuntu:16.04

#overrides for APT cache

RUN echo "force-unsafe-io" > /etc/dpkg/dpkg.cfg.d/02apt-speedup
RUN echo "Acquire::http {No-Cache=True;};" > /etc/apt/apt.conf.d/no-cache

# get dependencies

RUN apt update && \
    apt -y install \
    apt-utils \ 
    wget \
    sudo \
    bash \
    git \
    wget \
    ssh \
    tar \
    gzip \
    build-essential \
    ffmpeg \
    python3-pip \
    protobuf-compiler python \
    libprotobuf-dev \ 
    libcurl4-openssl-dev \
    libboost-all-dev \ 
    libncurses5-dev \
    libjemalloc-dev \
    m4
    
# node    

RUN wget -qO- https://deb.nodesource.com/setup_8.x | sudo -E bash -
RUN apt update && apt -y install nodejs

    
# now we create a dummy account 

RUN adduser --disabled-password --gecos "" clara && adduser clara sudo && su clara
WORKDIR /home/clara
RUN git config --global user.name nyan && git config --global user.email <EMAIL>

#Expose Local port and SSH Port just because we can

EXPOSE 22 8080

ENTRYPOINT ["node", "~/src/bot.js"]

# Install deps

RUN npm i --silent

# It's advisable to add your config files so if we run docker run, it wouldn't error out.

COPY . . 

# finally echo this in a fancy way

RUN echo "senpai it worked!"<commit_msg>Fix dockerfile not using user account<commit_after># Clara Dockerfile
# Copyright 2017 (c) Clara
# Licensed under MIT

FROM ubuntu:16.04

#overrides for APT cache
RUN echo "force-unsafe-io" > /etc/dpkg/dpkg.cfg.d/02apt-speedup
RUN echo "Acquire::http {No-Cache=True;};" > /etc/apt/apt.conf.d/no-cache

# get dependencies

RUN apt update && \
    apt -y install \
    apt-utils \
    software-properties-common \
    python-software-properties \
    wget \
    sudo \
    bash \
    git \
    wget \
    ssh \
    tar \
    gzip \
    openssh-server \
    build-essential \
    ffmpeg \
    python3-pip \
    protobuf-compiler python \
    libprotobuf-dev \ 
    libcurl4-openssl-dev \
    libboost-all-dev \ 
    libncurses5-dev \
    libjemalloc-dev \
    m4 
    
 # node    
 
 RUN wget -qO- https://deb.nodesource.com/setup_8.x | sudo -E bash -
 RUN apt update && apt -y install nodejs
 
     
 # now we create a dummy account 
 RUN mkdir /var/run/sshd && \
     sed 's@session\s*required\s*pam_loginuid.so@session optional pam_loginuid.so@g' -i /etc/pam.d/sshd && \
     echo "%sudo ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers && \
     useradd -u 1000 -G users,sudo -d /home/clara --shell /bin/bash -m clara && \
     usermod -p "*" clara
 USER clara
 
 #Expose Local port and SSH Port just because we can
 
EXPOSE 22 8080

ENTRYPOINT ["node", "/Clara/src/bot.js"]

# It's advisable to add your config files so if we run docker run, it wouldn't error out.

RUN sudo git clone https://github.com/ClaraIO/Clara.git --bare --depth=50

CMD ["/usr/sbin/sshd", "-p 22", "-D", "&&", "node", "/Clara/src/bot --harmony"]

# finally echo this in a fancy way

RUN echo "senpai it worked!"
{'fraction_non_alphanumeric': 0.12177985948477751, 'fraction_numerical': 0.01672800267648043, 'mean_word_length': 2.378531073446328, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 10, 'https://': 3, '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': '3156098', 'n_tokens_mistral': 1153, 'n_tokens_neox': 1051, 'n_words': 321}