<commit_before>FROM python:2.7.10-slim

RUN  apt-get update
RUN  apt-get install -y libmysqlclient-dev curl build-essential


# only needed for sqlite dev db
ENV db_path="/usr/src/db/db.sqlite3"
# making the db path seperate to ensure that src volume mapping doest not cause errors
RUN mkdir -p /usr/src/db

ENV secret.key="<KEY>
ENV DB.NAME=""
ENV DB.HOST=""
ENV DB.PORT=""
ENV DB.USER=""
ENV DB.PASSWORD=""
ENV DB.CHOICE="SQLLITE"

RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app

COPY requirements.txt /usr/src/app/
RUN pip install --no-cache-dir -r requirements.txt

COPY . /usr/src/app

RUN python manage.py migrate

# RUN python manage.py mockingest tech/management/commands/data.txt
<commit_msg>added collectstatic<commit_after>FROM conlini/python_dev

# only needed for sqlite dev db
ENV db_path="/usr/src/db/db.sqlite3"
# making the db path seperate to ensure that src volume mapping doest not cause errors
RUN mkdir -p /usr/src/db

ENV secret.key="<KEY>
ENV DB.NAME=""
ENV DB.HOST=""
ENV DB.PORT=""
ENV DB.USER=""
ENV DB.PASSWORD=""
ENV DB.CHOICE="SQLLITE"

RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app

COPY requirements.txt /usr/src/app/
RUN pip install --no-cache-dir -r requirements.txt

COPY . /usr/src/app

RUN python manage.py migrate
RUN python manage.py collectstatic --noinput

# RUN python manage.py mockingest tech/management/commands/data.txt

{'fraction_non_alphanumeric': 0.11923920994879297, 'fraction_numerical': 0.0043891733723482075, 'mean_word_length': 3.868327402135231, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, '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': '3243701', 'n_tokens_mistral': 492, 'n_tokens_neox': 470, 'n_words': 154}