<commit_before>FROM python:3-slim

WORKDIR /usr/src/app

COPY prometheus_es_exporter/*.py /usr/src/app/prometheus_es_exporter/
COPY setup.py /usr/src/app/
COPY LICENSE /usr/src/app/
COPY README.md /usr/src/app/
COPY MANIFEST.in /usr/src/app/

RUN pip install -e .

EXPOSE 8080

ENTRYPOINT ["python", "-u", "/usr/local/bin/prometheus-es-exporter"]
<commit_msg>Optimise Dockerfile to maximise layer reuse and minimise build time<commit_after>FROM python:3-slim

WORKDIR /usr/src/app

COPY setup.py /usr/src/app/
RUN pip install .

COPY prometheus_es_exporter/*.py /usr/src/app/prometheus_es_exporter/
RUN pip install -e .

COPY LICENSE /usr/src/app/
COPY README.md /usr/src/app/

EXPOSE 8080

ENTRYPOINT ["python", "-u", "/usr/local/bin/prometheus-es-exporter"]

{'fraction_non_alphanumeric': 0.1368421052631579, 'fraction_numerical': 0.013157894736842105, 'mean_word_length': 3.878205128205128, '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': '2694310', 'n_tokens_mistral': 315, 'n_tokens_neox': 290, 'n_words': 67}