<commit_before>FROM centos:7
MAINTAINER 178inaba <<EMAIL>>

# add nginx repo
RUN echo -e '[nginx]\n\
name=nginx repo\n\
baseurl=http://nginx.org/packages/mainline/centos/7/$basearch/\n\
gpgcheck=1\n\
gpgkey=http://nginx.org/keys/nginx_signing.key\n\
enabled=1' > /etc/yum.repos.d/nginx.repo

# add epel and remi
RUN yum -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm && \
    yum -y install http://rpms.remirepo.net/enterprise/remi-release-7.rpm && \
    yum-config-manager --enable remi-php70

# install nginx, php, supervisor
RUN yum -y update && \
    yum -y install nginx php php-fpm supervisor && \
    yum clean all

# add conf of supervisor
COPY etc/supervisor/ /etc/supervisord.d/

# copy conf of nginx
COPY etc/nginx/php.conf /etc/nginx/conf.d/default.conf

# copy bin
COPY bin/ /usr/local/bin

# use unix socket of fpm
RUN sed -i -e "s/apache$/nginx/" \
           -e "s|listen = 127.0.0.1:9000|listen = /var/run/php-fpm/php-fpm.sock|" \
           -e "s/;listen.owner = nobody/listen.owner = nginx/" \
           -e "s/;listen.group = nobody/listen.group = nginx/" \
           -e "s/listen.allowed_clients/;listen.allowed_clients/" \
           /etc/php-fpm.d/www.conf

# port open
EXPOSE 80

CMD ["supervisord", "-c", "/etc/supervisord.conf"]
<commit_msg>add laravel required module. #11<commit_after>FROM centos:7
MAINTAINER 178inaba <<EMAIL>.noreply.github.com>

# add nginx repo
RUN echo -e '[nginx]\n\
name=nginx repo\n\
baseurl=http://nginx.org/packages/mainline/centos/7/$basearch/\n\
gpgcheck=1\n\
gpgkey=http://nginx.org/keys/nginx_signing.key\n\
enabled=1' > /etc/yum.repos.d/nginx.repo

# add epel and remi
RUN yum -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm && \
    yum -y install http://rpms.remirepo.net/enterprise/remi-release-7.rpm && \
    yum-config-manager --enable remi-php70

# install nginx, php, supervisor
RUN yum -y update && \
    yum -y install nginx php php-mbstring php-pdo php-fpm supervisor && \
    yum clean all

# add conf of supervisor
COPY etc/supervisor/ /etc/supervisord.d/

# copy conf of nginx
COPY etc/nginx/php.conf /etc/nginx/conf.d/default.conf

# copy bin
COPY bin/ /usr/local/bin

# use unix socket of fpm
RUN sed -i -e "s/apache$/nginx/" \
           -e "s|listen = 127.0.0.1:9000|listen = /var/run/php-fpm/php-fpm.sock|" \
           -e "s/;listen.owner = nobody/listen.owner = nginx/" \
           -e "s/;listen.group = nobody/listen.group = nginx/" \
           -e "s/listen.allowed_clients/;listen.allowed_clients/" \
           /etc/php-fpm.d/www.conf

# port open
EXPOSE 80

CMD ["supervisord", "-c", "/etc/supervisord.conf"]

{'fraction_non_alphanumeric': 0.16022514071294558, 'fraction_numerical': 0.01801125703564728, 'mean_word_length': 2.760225669957687, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 9, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, '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': '1391601', 'n_tokens_mistral': 1118, 'n_tokens_neox': 1049, 'n_words': 216}