<commit_before>FROM harlo:postgres
MAINTAINER Harlo <<EMAIL>>

RUN apt-get update -qq

# Install requirements
RUN apt-get install -yq python-dev python-pip libgeos-dev

# Install python deps
RUN pip install -r requirements.txt
RUN docker_setup.py

# Setup database
ADD free_crow.backup
RUN python manage.py syncdb
RUN python manage.py migrate --all
RUN pg_restore --dbname=$(ENV_VAR) --verbose free_crow.backup --clean

# Create superuser TBD!!!

RUN python manage.py runserver_plus
EXPOSE 8000<commit_msg>adding dockerfile with a few stubs, but setup.py works<commit_after>FROM harlo:postgres
MAINTAINER Harlo <<EMAIL>>

RUN apt-get update -qq

# Install requirements
RUN apt-get install -yq python-dev python-pip libgeos-dev

# Install python deps
RUN pip install -r requirements.txt
RUN docker_setup.py

# Setup database
RUN python manage.py syncdb
RUN python manage.py migrate --all

# Populate database (TODO: from env_vars, because user might not have these...)
ADD free_crow.backup
RUN pg_restore --dbname=$(ENV_VAR) --verbose $(ENV_VAR) --clean

# Create superuser TBD!!!

RUN python manage.py runserver_plus
EXPOSE 8000
{'fraction_non_alphanumeric': 0.0851063829787234, 'fraction_numerical': 0.0070921985815602835, 'mean_word_length': 4.616915422885572, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '5575110', 'n_tokens_mistral': 368, 'n_tokens_neox': 349, 'n_words': 130}