<commit_before>FROM python:3.5

ENV INSTALL_PATH /isserviceup
RUN mkdir -p $INSTALL_PATH

WORKDIR $INSTALL_PATH

COPY requirements.txt requirements.txt
RUN pip install -r requirements.txt

COPY . .

CMD gunicorn -c "isserviceup/config/gunicorn.py" isserviceup.app:app<commit_msg>Use non-root user<commit_after>FROM python:3.5

RUN useradd --user-group --create-home --shell /bin/false app

ENV INSTALL_PATH /isserviceup
RUN mkdir -p $INSTALL_PATH && chown app:app /isserviceup

WORKDIR $INSTALL_PATH

COPY requirements.txt requirements.txt
RUN pip install -r requirements.txt

USER app

COPY . .

CMD gunicorn -c "isserviceup/config/gunicorn.py" isserviceup.app:app
{'fraction_non_alphanumeric': 0.09172932330827067, 'fraction_numerical': 0.006015037593984963, 'mean_word_length': 4.55, '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': '6378947', 'n_tokens_mistral': 237, 'n_tokens_neox': 224, 'n_words': 63}