<commit_before>FROM python:3.6 as tester
ARG TRAVIS_JOB_ID
WORKDIR /meetup_loto
COPY test-requirements.txt .
RUN pip install -r test-requirements.txt
COPY ./ ./
RUN nose2 --with-coverage --coverage-report term-missing
RUN coveralls -i

FROM python:3.6-alpine
COPY requirements.txt .
RUN pip install -r requirements.txt
COPY --from=tester /meetup_loto/src /src
CMD "export FLASK_APP=/src/server.py; flask run"
<commit_msg>Expose port 5000 and change the way flask is started<commit_after>FROM python:3.6 as tester
ARG TRAVIS_JOB_ID
WORKDIR /meetup_loto
COPY test-requirements.txt .
RUN pip install -r test-requirements.txt
COPY ./ ./
RUN nose2 --with-coverage --coverage-report term-missing
RUN coveralls -i

FROM python:3.6-alpine
COPY requirements.txt .
RUN pip install -r requirements.txt
COPY --from=tester /meetup_loto/src /src
EXPOSE 5000
CMD "FLASK_APP=/src/server.py flask run"

{'fraction_non_alphanumeric': 0.09830508474576272, 'fraction_numerical': 0.020338983050847456, 'mean_word_length': 4.121387283236994, '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': '849860', 'n_tokens_mistral': 332, 'n_tokens_neox': 300, 'n_words': 94}