<commit_before>FROM ubuntu:xenial
LABEL maintainer="<NAME>"

# apt
RUN sed -i.bak -e "s%http://archive.ubuntu.com/ubuntu/%http://ftp.jaist.ac.jp/pub/Linux/ubuntu/%g" /etc/apt/sources.list
RUN apt update \
    && apt install -y python3 python3-pip python3-venv git cmake gcc libboost-python-dev tzdata nginx

# timezone
ENV TZ Asia/Tokyo
RUN echo "${TZ}" > /etc/timezone \
    && rm /etc/localtime \
    && ln -s /usr/share/zoneinfo/Asia/Tokyo /etc/localtime \
    && dpkg-reconfigure -f noninteractive tzdata \ 
    && rm -rf /var/lib/apt/lists/*

# setting
# nginx
ADD default.conf /etc/nginx/conf.d/
RUN systemctl enable nginx
EXPOSE 80
# script
RUN git clone https://github.com/marron-general/TPTS_web /usr/src/TPTS_web
WORKDIR /usr/src/TPTS_web/
ADD setting.json /usr/src/TPTS_web
RUN python -m venv venv \
    && source venv/bin/activate \
    && pip install -r requirements.txt \
    && deactivate

# run
CMD source /usr/src/TPTS_web/venv/bin/activate \ 
    && uwsgi --ini myapp.ini

<commit_msg>Dockerfile修正<commit_after>FROM ubuntu:xenial
LABEL maintainer="<NAME>"

# apt
RUN sed -i.bak -e "s%http://archive.ubuntu.com/ubuntu/%http://ftp.jaist.ac.jp/pub/Linux/ubuntu/%g" /etc/apt/sources.list
RUN apt update \
    && apt install -y python3 python3-pip python3-venv git cmake gcc libboost-python-dev tzdata nginx

# timezone
ENV TZ Asia/Tokyo
RUN echo "${TZ}" > /etc/timezone \
    && rm /etc/localtime \
    && ln -s /usr/share/zoneinfo/Asia/Tokyo /etc/localtime \
    && dpkg-reconfigure -f noninteractive tzdata \ 
    && rm -rf /var/lib/apt/lists/*

# setting
# nginx
ADD default.conf /etc/nginx/conf.d/
RUN systemctl enable nginx
EXPOSE 80
# script
RUN git clone https://github.com/marron-akanishi/TPTS_web /usr/src/TPTS_web
WORKDIR /usr/src/TPTS_web/
ADD setting.json /usr/src/TPTS_web
RUN python -m venv venv \
    && source venv/bin/activate \
    && pip install -r requirements.txt \
    && deactivate

# run
CMD source /usr/src/TPTS_web/venv/bin/activate \ 
    && uwsgi --ini myapp.ini


{'fraction_non_alphanumeric': 0.1415752741774676, 'fraction_numerical': 0.004985044865403789, 'mean_word_length': 3.0059880239520957, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, 'https://': 2, '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': '1289502', 'n_tokens_mistral': 799, 'n_tokens_neox': 760, 'n_words': 176}