<commit_before>FROM python:3.8-slim

ENV TASK_VERSION=2.5.1-r0 DJANGO_SETTINGS_MODULE=inthe_am.settings

EXPOSE 8000

RUN apt-get update && \
  apt-get upgrade
RUN apt-get install -y postgresql-client git taskwarrior \
  python-dev gettext vim libxml2-dev libxslt-dev \
  libcurl4-gnutls-dev build-essential libgnutls28-dev \
  libpcre3 libpcre3-dev gnutls-bin supervisor cron

RUN pip install --upgrade pip
COPY requirements-frozen.txt /tmp
RUN pip install -r /tmp/requirements-frozen.txt
COPY ./docker/django/gitconfig /root/.gitconfig
COPY ./docker/django/entrypoint.sh /app/run.sh

ARG CRONTAB=./docker/django/empty.crontab
COPY ${CRONTAB} /etc/cron/tasks.crontab
RUN chmod 0644 /etc/cron/tasks.crontab &&\
  crontab /etc/cron/tasks.crontab

ARG SUPERVISORD_CONFIG
COPY $SUPERVISORD_CONFIG /etc/supervisor/conf.d/service.conf<commit_msg>Removing unnecessary upgrade step.<commit_after>FROM python:3.8-slim

ENV TASK_VERSION=2.5.1-r0 DJANGO_SETTINGS_MODULE=inthe_am.settings

EXPOSE 8000

RUN apt-get update
RUN apt-get install -y postgresql-client git taskwarrior \
  python-dev gettext vim libxml2-dev libxslt-dev \
  libcurl4-gnutls-dev build-essential libgnutls28-dev \
  libpcre3 libpcre3-dev gnutls-bin supervisor cron

RUN pip install --upgrade pip
COPY requirements-frozen.txt /tmp
RUN pip install -r /tmp/requirements-frozen.txt
COPY ./docker/django/gitconfig /root/.gitconfig
COPY ./docker/django/entrypoint.sh /app/run.sh

ARG CRONTAB=./docker/django/empty.crontab
COPY ${CRONTAB} /etc/cron/tasks.crontab
RUN chmod 0644 /etc/cron/tasks.crontab &&\
  crontab /etc/cron/tasks.crontab

ARG SUPERVISORD_CONFIG
COPY $SUPERVISORD_CONFIG /etc/supervisor/conf.d/service.conf
{'fraction_non_alphanumeric': 0.10297619047619047, 'fraction_numerical': 0.023809523809523808, 'mean_word_length': 4.269592476489028, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '888115', 'n_tokens_mistral': 673, 'n_tokens_neox': 624, 'n_words': 134}