<commit_before># Build the egg first
FROM python:3-alpine as builder

WORKDIR /tmp/build
COPY . .
RUN python3 setup.py bdist_egg

# The real image to be built
FROM python:3-alpine
MAINTAINER maxisoft
LABEL Description="This image is used to start freenom dns updater" Version="1.0"

WORKDIR /tmp/build
COPY --from=builder /tmp/build/dist/*.egg .

RUN python -m easy_install ./*.egg && \
     rm -rf *

WORKDIR /

CMD fdu process /etc/freenom.yml
<commit_msg>Set ENTRYPOINT to fdu<commit_after># Build the egg first
FROM python:3-alpine as builder

WORKDIR /tmp/build
COPY . .
RUN python3 setup.py bdist_egg

# The real image to be built
FROM python:3-alpine
MAINTAINER maxisoft
LABEL Description="This image is used to start freenom dns updater" Version="1.0"

WORKDIR /tmp/build
COPY --from=builder /tmp/build/dist/*.egg .

RUN python -m easy_install ./*.egg && \
     rm -rf *

WORKDIR /

# Make sure that we can run container
#  and pass args directly to our script
ENTRYPOINT [ "fdu" ]

# By default we will start an auto-update process
#  with a configuration file passed to it
CMD process /etc/freenom.yml

{'fraction_non_alphanumeric': 0.09262589928057553, 'fraction_numerical': 0.008992805755395683, 'mean_word_length': 3.524390243902439, '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': '4393746', 'n_tokens_mistral': 392, 'n_tokens_neox': 375, 'n_words': 141}