<commit_before>FROM ubuntu:trusty
MAINTAINER ZuoLan <<EMAIL>>

ENV base="ca-certificates nginx php5 php5-fpm php5-cli php5-json php5-mysql php5-curl"
ENV build="unzip"
RUN apt-get update && \
    apt-get install -y ${base} ${build}

RUN mkdir /typecho
WORKDIR /typecho
VOLUME /typecho/usr

RUN cd /typecho && \
    curl -o typecho-master.zip -L https://github.com/typecho/typecho/archive/master.zip && \
    unzip typecho-master.zip && rm typecho-master.zip

ADD nginx.conf /etc/nginx/nginx.conf

RUN chown -R www-data: /typecho && \
    apt-get purge --auto-remove -y ${build} && \
    apt-get autoremove -y && \
    apt-get autoclean -y && \
    apt-get clean -y && \
    rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

CMD ["sh", "-c", "service php5-fpm start && nginx"]
<commit_msg>Update Dockerfile<commit_after>FROM ubuntu:trusty
MAINTAINER ZuoLan <<EMAIL>>

ENV ALLOW_OVERRIDE **False**

# Install base packages
RUN apt-get update && \
    DEBIAN_FRONTEND=noninteractive apt-get -yq install \
        curl \
        apache2 \
        sqlite3 \
        libapache2-mod-php5 \
        php5-mysql \
        php5-sqlite
        php5-mcrypt \
        php5-gd \
        php5-curl \
        php-pear \
        php-apc \
        unzip && \
    rm -rf /var/lib/apt/lists/*
RUN /usr/sbin/php5enmod mcrypt && \
    echo "ServerName localhost" >> /etc/apache2/apache2.conf && \
    sed -i "s/variables_order.*/variables_order = \"EGPCS\"/g" /etc/php5/apache2/php.ini

# Add image configuration and scripts
ADD run.sh /run.sh
RUN chmod 755 /*.sh

# Configure /app folder with sample app
RUN mkdir -p /app && rm -fr /var/www/html && ln -s /app /var/www/html

RUN cd /app && \
    curl -o typecho-master.zip -L https://github.com/typecho/typecho/archive/master.zip && \
    unzip typecho-master.zip && rm typecho-master.zip

RUN apt-get purge --auto-remove -y unzip && \
    apt-get autoremove -y && \
    apt-get autoclean -y && \
    apt-get clean -y && \
    rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

WORKDIR /app
VOLUME ["/app/usr/themes","/app/usr/plugins","/app/usr/uploads"]
EXPOSE 80
CMD ["/run.sh"]

{'fraction_non_alphanumeric': 0.15501664289110795, 'fraction_numerical': 0.012363290537327628, 'mean_word_length': 2.3556618819776713, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 9, 'https://': 2, 'lorem ipsum': 0, 'www.': 3, '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': '6843565', 'n_tokens_mistral': 829, 'n_tokens_neox': 786, 'n_words': 192}