<commit_before>FROM nginx

RUN apt-get update && apt-get install git cron python-pip -y
RUN pip install gunicorn bottle pytz beautifulsoup4 redis pymongo

WORKDIR /var/www
RUN git clone -b v1 https://github.com/FrontSide/txfmtrackservice-client.git

WORKDIR /opt
RUN git clone -b v1 https://github.com/FrontSide/txfmtrackservice.git

WORKDIR /opt/txfmtrackservice

RUN cp -f ./config/nginx/default.conf /etc/nginx/conf.d/default.conf

RUN touch txfmtrack.log \
&& echo "* * * * * /opt/txfmtrackservice/txfmtracker.py && TXFM_MSG="OK $(date)" || TXFM_MSG="ERROR $(date)"; echo "$TXFM_MSG" >> /opt/txfmtrackservice/txfmtrack.log" > cron.tmp \
&& crontab cron.tmp \
&& rm cron.tmp

VOLUME /var/www/txfmtrackservice-client/_config

ENTRYPOINT cp /var/www/txfmtrackservice-client/config/host.js /var/www/txfmtrackservice-client/_config/host.js && chmod 777 /var/www/txfmtrackservice-client/_config/host.js \
;service nginx start; cron start; gunicorn -w 4 -b 127.0.0.1:8384 web:app<commit_msg>update Dockerfile<commit_after>FROM nginx

RUN apt-get update && apt-get install git cron python-pip -y
RUN pip install gunicorn bottle

WORKDIR /var/www
RUN git clone -b v1.1 https://github.com/FrontSide/txfmtrackservice-client.git

WORKDIR /opt
RUN git clone -b v1.1 https://github.com/FrontSide/txfmtrackservice.git

WORKDIR /opt/txfmtrackservice
RUN pip install -r requirements.txt

RUN cp -f ./config/nginx/default.conf /etc/nginx/conf.d/default.conf

RUN touch txfmtrack.log \
&& echo "* * * * * /opt/txfmtrackservice/txfmtracker.py && TXFM_MSG="OK $(date)" || TXFM_MSG="ERROR $(date)"; echo "$TXFM_MSG" >> /opt/txfmtrackservice/txfmtrack.log" > cron.tmp \
&& crontab cron.tmp \
&& rm cron.tmp

VOLUME /var/www/txfmtrackservice-client/_config

ENTRYPOINT cp /var/www/txfmtrackservice-client/config/host.js /var/www/txfmtrackservice-client/_config/host.js && chmod 777 /var/www/txfmtrackservice-client/_config/host.js \
;service nginx start; cron start; gunicorn -w 4 -b 127.0.0.1:8384 web:app
{'fraction_non_alphanumeric': 0.13595166163141995, 'fraction_numerical': 0.017623363544813697, 'mean_word_length': 4.18798955613577, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, 'https://': 4, 'lorem ipsum': 0, 'www.': 8, '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': '1289443', 'n_tokens_mistral': 753, 'n_tokens_neox': 713, 'n_words': 161}