<commit_before>FROM python:3.5.2



WORKDIR /app

ADD requirements/common.txt /app/requirements/common.txt
ADD requirements/docker.txt /app/requirements/docker.txt
RUN pip install -r requirements/docker.txt

RUN apt-get update && apt-get install -y ruby ruby-dev
RUN gem install bundler

ADD . /app

RUN ./manage.py install_all_govuk_assets

# local dev server port
EXPOSE 5000

# uWSGI port
EXPOSE 3031

CMD uwsgi --socket 0.0.0.0:3031 --manage-script-name --module=app.wsgi:app -pp=./app --processes 4 --threads 2<commit_msg>Migrate db and add users in docker<commit_after>FROM python:3.5.2



WORKDIR /app

ADD requirements/common.txt /app/requirements/common.txt
ADD requirements/docker.txt /app/requirements/docker.txt
RUN pip install -r requirements/docker.txt

RUN apt-get update && apt-get install -y ruby ruby-dev
RUN gem install bundler

ADD . /app

RUN ./manage.py install_all_govuk_assets
RUN ./manage.py db upgrade
RUN ./manage.py add_users

# local dev server port
EXPOSE 5000

# uWSGI port
EXPOSE 3031

CMD uwsgi --socket 0.0.0.0:3031 --manage-script-name --module=app.wsgi:app -pp=./app --processes 4 --threads 2
{'fraction_non_alphanumeric': 0.10815602836879433, 'fraction_numerical': 0.03723404255319149, 'mean_word_length': 3.627049180327869, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '7262546', 'n_tokens_mistral': 431, 'n_tokens_neox': 383, 'n_words': 118}