<commit_before>FROM python:3.6.0
ENV PYTHONBUFFERED 1

ENV DATABASE_URL postgres://user:pass@host:5432/db

ENV SECRET_KEY 'ah_f*z03ogus3mzgno)a)(!0!&hd$0(r*$<KEY>%%'
ENV RDEC_DEBUG False
ENV RDEC_ALLOWED_HOSTS '*'
ENV LOG_LEVEL INFO

# If AWS_ACCESS_KEY_ID is empty - fall back to local/whitenoise hosting
# Otherwise - S3 bucket
ENV AWS_ACCESS_KEY_ID
ENV AWS_SECRET_ACCESS_KEY
ENV AWS_STORAGE_BUCKET_NAME
ENV AWS_MEDIA_BUCKET_NAME

ENV RDEC_LEAGUE_NAME
ENV RDEC_RECENT_EVENT_CUTOFF_DAYS
ENV RDEC_MAIL_FROM_ADDRESS

WORKDIR /app
ADD . .
RUN pip install -r requirements.txt
RUN python manage.py collectstatic --noinput

CMD ["gunicorn", "rdecsite.wsgi", "--log-file", "-", "-b", "0.0.0.0:8000", "--access-logfile", "-"]
EXPOSE 8000
<commit_msg>Fixed oops with missing bits in new Dockerfile.<commit_after>FROM python:3.6.0
ENV PYTHONBUFFERED 1

ENV DATABASE_URL postgres://user:pass@host:5432/db

ENV SECRET_KEY '<KEY>'
ENV RDEC_DEBUG False
ENV RDEC_ALLOWED_HOSTS '*'
ENV LOG_LEVEL INFO

# If AWS_ACCESS_KEY_ID is empty - fall back to local/whitenoise hosting
# Otherwise - S3 bucket
ENV AWS_ACCESS_KEY_ID ""
ENV AWS_SECRET_ACCESS_KEY ""
ENV AWS_STORAGE_BUCKET_NAME ""
ENV AWS_MEDIA_BUCKET_NAME ""

ENV RDEC_LEAGUE_NAME ""
ENV RDEC_RECENT_EVENT_CUTOFF_DAYS ""
ENV RDEC_MAIL_FROM_ADDRESS ""

WORKDIR /app
ADD . .
RUN pip install -r requirements.txt
RUN python manage.py collectstatic --noinput

CMD ["gunicorn", "rdecsite.wsgi", "--log-file", "-", "-b", "0.0.0.0:8000", "--access-logfile", "-"]
EXPOSE 8000

{'fraction_non_alphanumeric': 0.11428571428571428, 'fraction_numerical': 0.03122923588039867, 'mean_word_length': 5.3277310924369745, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '7262556', 'n_tokens_mistral': 623, 'n_tokens_neox': 599, 'n_words': 141}