<commit_before>FROM php:7.0-apache

RUN php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
RUN php -r "if (hash_file('SHA384', 'composer-setup.php') === 'e115a8dc7871f15d853148a7fbac7da27d6c0030b848d9b3dc09e2a0388afed865e6a3d6b3c0fad45c48e2b5fc1196ae') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
RUN php composer-setup.php --install-dir=/bin
RUN php -r "unlink('composer-setup.php');"

RUN apt-get update
RUN apt-get -y install git unzip nodejs-legacy nodejs npm vim mysql-client
RUN npm install -g bower

COPY composer.json composer.lock /var/www/html/	 
RUN composer.phar install

COPY config/apache.conf /etc/apache2/sites-available/contest.conf
RUN a2dissite 000-default
RUN a2ensite contest
RUN mkdir /var/www/html/logs && ln -s /var/log/apache2 /var/www/html/logs/apache

RUN docker-php-ext-install mysqli pdo pdo_mysql

COPY contestInterface/bower.json /var/www/html/contestInterface/
RUN cd /var/www/html/contestInterface && bower install --allow-root
COPY teacherInterface/bower.json /var/www/html/teacherInterface/
RUN cd /var/www/html/teacherInterface && bower install --allow-root

COPY . /var/www/html
RUN chown -R www-data:www-data *

EXPOSE 80<commit_msg>remove check from dockerfile<commit_after>FROM php:7.0-apache

RUN php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
RUN php composer-setup.php --install-dir=/bin
RUN php -r "unlink('composer-setup.php');"

RUN apt-get update
RUN apt-get -y install git unzip nodejs-legacy nodejs npm vim mysql-client
RUN npm install -g bower

COPY composer.json composer.lock /var/www/html/	 
RUN composer.phar install

COPY config/apache.conf /etc/apache2/sites-available/contest.conf
RUN a2dissite 000-default
RUN a2ensite contest
RUN mkdir /var/www/html/logs && ln -s /var/log/apache2 /var/www/html/logs/apache

RUN docker-php-ext-install mysqli pdo pdo_mysql

COPY contestInterface/bower.json /var/www/html/contestInterface/
RUN cd /var/www/html/contestInterface && bower install --allow-root
COPY teacherInterface/bower.json /var/www/html/teacherInterface/
RUN cd /var/www/html/teacherInterface && bower install --allow-root

COPY . /var/www/html
RUN chown -R www-data:www-data *

EXPOSE 80
{'fraction_non_alphanumeric': 0.12411660777385158, 'fraction_numerical': 0.0353356890459364, 'mean_word_length': 4.431654676258993, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 20, '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': '7602202', 'n_tokens_mistral': 880, 'n_tokens_neox': 809, 'n_words': 195}