<commit_before>FROM python:3.6-alpine

RUN apk update && apk add curl

COPY . /code
WORKDIR /code
RUN pip install -r requirements.txt

ENV FLASK_APP=/code/notebooks_service.py

RUN addgroup -g 1000 kyaku && \
    adduser -S -u 1000 -G kyaku kyaku
USER kyaku

CMD ["flask", "run", "-p" ,"8000", "-h", "0.0.0.0"]

HEALTHCHECK --interval=20s --timeout=10s --retries=5 CMD curl -f http://localhost/health<commit_msg>notebooks: fix healthcheck<commit_after>FROM python:3.6-alpine

RUN apk update && apk add curl

COPY . /code
WORKDIR /code
RUN pip install -r requirements.txt

ENV FLASK_APP=/code/notebooks_service.py

RUN addgroup -g 1000 kyaku && \
    adduser -S -u 1000 -G kyaku kyaku
USER kyaku

CMD ["flask", "run", "-p" ,"8000", "-h", "0.0.0.0"]

HEALTHCHECK --interval=20s --timeout=10s --retries=5 CMD curl -f http://localhost:8000/health
{'fraction_non_alphanumeric': 0.1496437054631829, 'fraction_numerical': 0.05938242280285035, 'mean_word_length': 3.556756756756757, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '6412478', 'n_tokens_mistral': 364, 'n_tokens_neox': 314, 'n_words': 97}