<commit_before>FROM python:3.9-slim-buster

WORKDIR /srv

ENV PYTHONDONTWRITEBYTECODE 1
ENV PYTHONUNBUFFERED 1

RUN apt update
RUN apt install -y libpq-dev build-essential netcat

RUN pip install --upgrade pip

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

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

COPY . .

ENTRYPOINT ["./entrypoint.sh"]
CMD ["gunicorn", "incubator.wsgi:application", "--bind", "0.0.0.0:8000"]<commit_msg>rewritting dockerfile, removing the apt list dir and minimizing the number of layer<commit_after>FROM python:3.9-slim-buster

WORKDIR /srv

ENV PYTHONDONTWRITEBYTECODE 1
ENV PYTHONUNBUFFERED 1

RUN apt update && apt install -y libpq-dev build-essential netcat && rm -rf /var/lib/apt/lists/*

COPY ./requirements.txt .
COPY ./requirements-prod.txt .

RUN pip install --upgrade pip && pip install -r requirements.txt && pip install -r requirements-prod.txt

COPY . .

ENTRYPOINT ["./entrypoint.sh"]
CMD ["gunicorn", "incubator.wsgi:application", "--bind", "0.0.0.0:8000"]
{'fraction_non_alphanumeric': 0.12487992315081652, 'fraction_numerical': 0.023054755043227664, 'mean_word_length': 4.058252427184466, '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': '1907886', 'n_tokens_mistral': 384, 'n_tokens_neox': 359, 'n_words': 105}