<commit_before># from https://wordpress.org/about/requirements/
FROM php:5.6-apache

MAINTAINER  <NAME> <<EMAIL>>
ENV REFRESHED_AT 2015-11-03

RUN a2enmod rewrite

#no frontend, otherwise ssmtp install fails...
ENV DEBIAN_FRONTEND noninteractive

# install the PHP extensions we need + SSMTP
RUN apt-get update && apt-get install -y libpng12-dev libjpeg-dev libpq-dev ssmtp \
	&& rm -rf /var/lib/apt/lists/* \
	&& docker-php-ext-configure gd --with-png-dir=/usr --with-jpeg-dir=/usr \
	&& docker-php-ext-install gd mbstring mysqli

#setup ssmtp ENVs
# ENV SMTP_MAILHOST localhost
# ENV SMTP_PORT 25
# ENV SMTP_USER user
# ENV SMTP_PASS <PASSWORD>
# ENV SMTP_USE_TLS No
# ENV SMTP_USE_TLS_CERTS No
# ENV SMTP_FROM_OVERRIDE Yes
# ENV SMTP_USE_STARTTLS No
# ENV SMTP_ROOT root@localhost
# ENV SMTP_HOSTNAME drupal.zz

#configure ssmtp by creating a new conf, generated from ENVs
# RUN rm -f /etc/ssmtp/ssmtp.conf && \
# 	echo mailhub=${SMTP_MAILHOST}:${SMTP_PORT} >> /etc/ssmtp/ssmtp.conf && \
# 	echo root=${SMTP_ROOT} >> /etc/ssmtp/ssmtp.conf && \
# 	echo AuthUser=${SMTP_USER} >> /etc/ssmtp/ssmtp.conf && \
# 	echo AuthPass=${SMTP_PASS} >> /etc/ssmtp/ssmtp.conf && \
# 	echo UseTLS=${SMTP_USE_TLS} >> /etc/ssmtp/ssmtp.conf && \
# 	echo UseSTARTTLS=${SMTP_USE_STARTTLS} >> /etc/ssmtp/ssmtp.conf && \
# 	echo FromLineOverride=${SMTP_FROM_OVERRIDE} >> /etc/ssmtp/ssmtp.conf && \
# 	echo hostname=${SMTP_HOSTNAME} >> /etc/ssmtp/ssmtp.conf

#setup php.ini to allow for sending via ssmtp
RUN echo [mail function] >> /usr/local/etc/php/php.ini && \
	echo sendmail_path = /usr/sbin/ssmtp -t >> /usr/local/etc/php/php.ini && \
	apache2ctl restart

WORKDIR /var/www/html

# https://docs.docker.com/compose/wordpress/ v4.3.1
RUN curl -fSL "https://wordpress.org/latest.tar.gz" -o wordpress.tar.gz \
	&& tar -xz --strip-components=1 -f wordpress.tar.gz \
	&& rm wordpress.tar.gz \
	&& chown -R www-data:www-data *<commit_msg>added user mod to container<commit_after># from https://wordpress.org/about/requirements/
FROM php:5.6-apache

MAINTAINER  <NAME> <<EMAIL>>
ENV REFRESHED_AT 2015-11-03

RUN a2enmod rewrite

#no frontend, otherwise ssmtp install fails...
ENV DEBIAN_FRONTEND noninteractive

# install the PHP extensions we need + SSMTP
RUN apt-get update && apt-get install -y libpng12-dev libjpeg-dev libpq-dev ssmtp \
	&& rm -rf /var/lib/apt/lists/* \
	&& docker-php-ext-configure gd --with-png-dir=/usr --with-jpeg-dir=/usr \
	&& docker-php-ext-install gd mbstring mysqli

#setup ssmtp ENVs
# ENV SMTP_MAILHOST localhost
# ENV SMTP_PORT 25
# ENV SMTP_USER user
# ENV SMTP_PASS <PASSWORD>
# ENV SMTP_USE_TLS No
# ENV SMTP_USE_TLS_CERTS No
# ENV SMTP_FROM_OVERRIDE Yes
# ENV SMTP_USE_STARTTLS No
# ENV SMTP_ROOT root@localhost
# ENV SMTP_HOSTNAME drupal.zz

#configure ssmtp by creating a new conf, generated from ENVs
# RUN rm -f /etc/ssmtp/ssmtp.conf && \
# 	echo mailhub=${SMTP_MAILHOST}:${SMTP_PORT} >> /etc/ssmtp/ssmtp.conf && \
# 	echo root=${SMTP_ROOT} >> /etc/ssmtp/ssmtp.conf && \
# 	echo AuthUser=${SMTP_USER} >> /etc/ssmtp/ssmtp.conf && \
# 	echo AuthPass=${SMTP_<PASSWORD>} >> /etc/ssmtp/ssmtp.conf && \
# 	echo UseTLS=${SMTP_USE_TLS} >> /etc/ssmtp/ssmtp.conf && \
# 	echo UseSTARTTLS=${SMTP_USE_STARTTLS} >> /etc/ssmtp/ssmtp.conf && \
# 	echo FromLineOverride=${SMTP_FROM_OVERRIDE} >> /etc/ssmtp/ssmtp.conf && \
# 	echo hostname=${SMTP_HOSTNAME} >> /etc/ssmtp/ssmtp.conf

#setup php.ini to allow for sending via ssmtp
RUN echo [mail function] >> /usr/local/etc/php/php.ini && \
	echo sendmail_path = /usr/sbin/ssmtp -t >> /usr/local/etc/php/php.ini && \
	apache2ctl restart

WORKDIR /var/www/html

# https://docs.docker.com/compose/wordpress/ v4.3.1
RUN curl -fSL "https://wordpress.org/latest.tar.gz" -o wordpress.tar.gz \
	&& tar -xz --strip-components=1 -f wordpress.tar.gz \
	&& rm wordpress.tar.gz \
	&& chown -R www-data:www-data *

RUN usermod -u 1000 www-data
{'fraction_non_alphanumeric': 0.15170278637770898, 'fraction_numerical': 0.011351909184726523, 'mean_word_length': 3.768757687576876, 'pattern_counts': {'":': 0, '<': 12, '<?xml version=': 0, '>': 52, 'https://': 6, 'lorem ipsum': 0, 'www.': 7, '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': '2032328', 'n_tokens_mistral': 1645, 'n_tokens_neox': 1585, 'n_words': 333}