<commit_before>FROM php:5.6-apache

RUN apt-get update && apt-get install -y libxml++2.6-dev \
    && docker-php-ext-install soap

RUN apt-get update && apt-get install -y libmemcached-dev zlib1g-dev \
    && pecl install memcached-2.2.0 \
    && docker-php-ext-enable memcached

RUN echo "date.timezone = UTC" > /usr/local/etc/php/conf.d/timezone.ini

COPY . /var/www/html/

EXPOSE 80
<commit_msg>Add Docker healthcheck<commit_after>FROM php:5.6-apache

RUN apt-get update && apt-get install -y libxml++2.6-dev \
    && docker-php-ext-install soap

RUN apt-get update && apt-get install -y libmemcached-dev zlib1g-dev \
    && pecl install memcached-2.2.0 \
    && docker-php-ext-enable memcached

RUN echo "date.timezone = UTC" > /usr/local/etc/php/conf.d/timezone.ini

COPY . /var/www/html/

EXPOSE 80

HEALTHCHECK CMD curl --fail "http://localhost/debug.php?url=https%3A%2F%2Fovercast.fm%2Fitunes617416468%2Faccidental-tech-podcast" || exit 1

{'fraction_non_alphanumeric': 0.1446673706441394, 'fraction_numerical': 0.03695881731784583, 'mean_word_length': 3.328767123287671, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 2}, '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': '2577820', 'n_tokens_mistral': 382, 'n_tokens_neox': 359, 'n_words': 75}