<commit_before>FROM maguowei/python:latest
LABEL maintainer="<EMAIL>"
LABEL name="maguowei/python-app"
LABEL version="1.0.0"

ENV APP_NAME ${APP_NAME}
ENV APP_ENV ${APP_ENV}
ENV APP_SOURCE_CODE_PATH /app
ENV APP_LOG_PATH /data/app/log
ENV PATH .:/home/app/.local/bin:$PATH

RUN groupadd app && useradd -ms /bin/bash -g app app
RUN mkdir -p ${APP_LOG_PATH} && chown -R app:app ${APP_LOG_PATH} \
    && mkdir -p ${APP_SOURCE_CODE_PATH} && chown -R app:app ${APP_SOURCE_CODE_PATH}
WORKDIR ${APP_SOURCE_CODE_PATH}
VOLUME ${APP_LOG_PATH}

USER app
COPY entrypoint.sh ./
ONBUILD COPY Pipfile* ./
ONBUILD RUN pipenv install
ONBUILD COPY --chown=app:app . ${APP_SOURCE_CODE_PATH}
ONBUILD ENTRYPOINT ["entrypoint.sh"]
EXPOSE 8080<commit_msg>update python-app entrypoint default path<commit_after>FROM maguowei/python:latest
LABEL maintainer="<EMAIL>"
LABEL name="maguowei/python-app"
LABEL version="1.0.0"

ENV APP_NAME ${APP_NAME}
ENV APP_ENV ${APP_ENV}
ENV APP_SOURCE_CODE_PATH /app
ENV APP_LOG_PATH /data/app/log
ENV PATH .:/home/app/.local/bin:$PATH

RUN groupadd app && useradd -ms /bin/bash -g app app
RUN mkdir -p ${APP_LOG_PATH} && chown -R app:app ${APP_LOG_PATH} \
    && mkdir -p ${APP_SOURCE_CODE_PATH} && chown -R app:app ${APP_SOURCE_CODE_PATH}
WORKDIR ${APP_SOURCE_CODE_PATH}
VOLUME ${APP_LOG_PATH}

USER app
COPY entrypoint.sh /usr/local/bin
ONBUILD COPY Pipfile* ./
ONBUILD RUN pipenv install
ONBUILD COPY --chown=app:app . ${APP_SOURCE_CODE_PATH}
ONBUILD ENTRYPOINT ["entrypoint.sh"]
EXPOSE 8080
{'fraction_non_alphanumeric': 0.1276595744680851, 'fraction_numerical': 0.009308510638297872, 'mean_word_length': 5.193415637860082, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '6097573', 'n_tokens_mistral': 593, 'n_tokens_neox': 576, 'n_words': 146}