<commit_before>FROM python:3.5
COPY requirements.txt /requirements.txt
COPY requirements-dev.txt /requirements-dev.txt
RUN python -m pip install -U pip
RUN python -m pip install -r requirements-dev.txt
RUN apt-get update && apt-get install -y postgresql postgresql-contrib
COPY manage.py /code/manage.py
COPY jarbas /code/jarbas
WORKDIR /code
RUN echo "America/Sao_Paulo" > /etc/timezone && dpkg-reconfigure -f noninteractive tzdata
VOLUME /code/staticfiles
CMD ["gunicorn", "jarbas.wsgi:application", "--reload", "--bind", "0.0.0.0:8001", "--workers", "4"]<commit_msg>Avoid running Celery and gunicorn with root<commit_after>FROM python:3.5
COPY requirements.txt /requirements.txt
COPY requirements-dev.txt /requirements-dev.txt
RUN python -m pip install -U pip
RUN python -m pip install -r requirements-dev.txt
RUN apt-get update && apt-get install -y postgresql postgresql-contrib
COPY manage.py /code/manage.py
COPY jarbas /code/jarbas
WORKDIR /code
RUN echo "America/Sao_Paulo" > /etc/timezone && dpkg-reconfigure -f noninteractive tzdata
VOLUME /code/staticfiles
RUN useradd -ms /bin/bash jarbas
USER jarbas
CMD ["gunicorn", "jarbas.wsgi:application", "--reload", "--bind", "0.0.0.0:8001", "--workers", "4"]
{'fraction_non_alphanumeric': 0.13107996702390767, 'fraction_numerical': 0.018136850783182192, 'mean_word_length': 4.54337899543379, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '4382641', 'n_tokens_mistral': 422, 'n_tokens_neox': 399, 'n_words': 124}