<commit_before>FROM python:alpine
COPY . /usr/src/ytviewer
WORKDIR /usr/src/ytviewer

# Upgrade apk, install latest https certs.
RUN apk --update upgrade && \
    apk add ca-certificates && \
    update-ca-certificates

# install requirements for app.
RUN pip install -r requirements.txt

EXPOSE 53627

CMD [ "python3", "app.py" ]
<commit_msg>Add gunicorn; fixes #5.<commit_after>FROM python:alpine
COPY . /usr/src/ytviewer
WORKDIR /usr/src/ytviewer

# Upgrade apk, install latest https certs.
RUN apk --update upgrade && \
    apk add ca-certificates && \
    update-ca-certificates

# install requirements for app.
RUN pip install -r requirements.txt

# install gunicorn
RUN pip install gunicorn

EXPOSE 53628

CMD [ "/usr/local/bin/gunicorn", "-b", ":53628", "-w", "4", "-t", "0", "--reload", "-p", "ytviewer.pid", "app:app" ]

{'fraction_non_alphanumeric': 0.14096385542168674, 'fraction_numerical': 0.02289156626506024, 'mean_word_length': 3.6166666666666667, 'pattern_counts': {'":': 1, '<': 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': '1583233', 'n_tokens_mistral': 307, 'n_tokens_neox': 284, 'n_words': 86}