<commit_before>FROM python:2.7

COPY /docker/rds-combined-ca-bundle.pem /usr/local/share/ca-certificates/rds-combined-ca-bundle.pem

RUN chown root:root /usr/local/share/ca-certificates/rds-combined-ca-bundle.pem && \
    chmod 600 /usr/local/share/ca-certificates/rds-combined-ca-bundle.pem

ENV APP_HOME=/makeaplea/
ENV DJANGO_SETTINGS_MODULE=make_a_plea.settings.docker
WORKDIR $APP_HOME

ADD apt/ $APP_HOME/apt

RUN apt-get -y update && $APP_HOME/apt/production.sh

COPY requirements.txt $APP_HOME
ADD requirements/ $APP_HOME/requirements/

RUN pip install -r requirements.txt

RUN mkdir /user_data
RUN mkdir /user_data/.gnupg
RUN mkdir -p make_a_plea/assets

VOLUME ["/user_data"]

COPY . $APP_HOME

RUN gpg --import /makeaplea/docker/user_data.gpg

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

CMD ["./run.sh"]

EXPOSE 9080

<commit_msg>Tidy up Dockerfile<commit_after>FROM python:2.7

ENV APP_HOME=/makeaplea/
ENV DJANGO_SETTINGS_MODULE=make_a_plea.settings.docker
WORKDIR $APP_HOME

# Debian dependencies
COPY apt/ $APP_HOME/apt
RUN apt-get -y update && $APP_HOME/apt/production.sh

# Python dependencies
COPY requirements.txt $APP_HOME
COPY requirements/ $APP_HOME/requirements/
RUN pip install -r requirements.txt

RUN mkdir /user_data
RUN mkdir /user_data/.gnupg
RUN mkdir -p make_a_plea/assets

VOLUME ["/user_data"]

COPY . $APP_HOME

RUN gpg --import /makeaplea/docker/user_data.gpg

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

CMD ["./run.sh"]

EXPOSE 9080


{'fraction_non_alphanumeric': 0.10580645161290322, 'fraction_numerical': 0.00967741935483871, 'mean_word_length': 4.423076923076923, '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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '553622', 'n_tokens_mistral': 603, 'n_tokens_neox': 572, 'n_words': 132}