<commit_before>FROM debian:jessie

EXPOSE 8000
CMD ["./bin/run-prod.sh"]

RUN adduser --uid 1000 --disabled-password --gecos '' --no-create-home webdev

RUN apt-get update && \
    apt-get install -y --no-install-recommends build-essential python python-dev python-pip \
                                               libpq-dev postgresql-client python-psycopg2 gettext && \
    rm -rf /var/lib/apt/lists/*

WORKDIR /app

# Get pip 8
COPY bin/pipstrap.py bin/pipstrap.py
RUN bin/pipstrap.py

COPY requirements.txt /app/requirements.txt
RUN pip install --require-hashes --no-cache-dir --ignore-installed -r requirements.txt

COPY . /app
RUN DEBUG=False SECRET_KEY=foo ALLOWED_HOSTS=localhost, DATABASE_URL=sqlite:// ./manage.py collectstatic --noinput -c

# Change User
RUN chown webdev.webdev -R .
USER webdev<commit_msg>Avoid problems with missing static dir<commit_after>FROM debian:jessie

EXPOSE 8000
CMD ["./bin/run-prod.sh"]

RUN adduser --uid 1000 --disabled-password --gecos '' --no-create-home webdev

RUN apt-get update && \
    apt-get install -y --no-install-recommends build-essential python python-dev python-pip \
                                               libpq-dev postgresql-client python-psycopg2 gettext && \
    rm -rf /var/lib/apt/lists/*

WORKDIR /app

# Get pip 8
COPY bin/pipstrap.py bin/pipstrap.py
RUN bin/pipstrap.py

COPY requirements.txt /app/requirements.txt
RUN pip install --require-hashes --no-cache-dir --ignore-installed -r requirements.txt

COPY . /app
RUN DEBUG=False SECRET_KEY=foo ALLOWED_HOSTS=localhost, DATABASE_URL=sqlite:// ./manage.py collectstatic --noinput

# Change User
RUN chown webdev.webdev -R .
USER webdev
{'fraction_non_alphanumeric': 0.11598557692307693, 'fraction_numerical': 0.01201923076923077, 'mean_word_length': 2.784090909090909, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2293453', 'n_tokens_mistral': 579, 'n_tokens_neox': 534, 'n_words': 147}