<commit_before># A nginx webserver for the front app, deploying the project
FROM debian:wheezy

MAINTAINER <NAME>, <EMAIL>

# Make sure the package repository is up to date
# RUN echo "deb http://archive.ubuntu.com/ubuntu rarity main universe" > /etc/apt/sources.list
RUN apt-get update

# Install php5-fpm
RUN apt-get install -y php5-fpm

# Install nginx
RUN apt-get install -y nginx
RUN rm -v /etc/nginx/sites-enabled/default
ADD docker/nginx.conf /etc/nginx/sites-enabled/
RUN echo "daemon off;" >> /etc/nginx/nginx.conf

# Install the project
RUN mkdir -p /var/www/project
ADD . /var/www/project

# Add the start script
ADD docker/start.sh .
RUN chmod 755 start.sh

EXPOSE 80

ENTRYPOINT ./start.sh<commit_msg>Handle specific project requirements in the dockerfile (the app/cache and app/logs permissions are still missing)<commit_after># A nginx webserver for the front app, deploying the project
FROM ubuntu:utopic

MAINTAINER <NAME>, <EMAIL>

# Make sure the package repository is up to date
RUN apt-get update

# Install project dependencies
RUN apt-get install -y curl
RUN curl -sL https://deb.nodesource.com/setup | sudo bash -
RUN apt-get install -y nodejs
# Update npm to the latest version
RUN curl -L https://npmjs.org/install.sh | sh

# Install php and nginx
RUN apt-get install -y php5-cli php5-fpm php5-curl
RUN apt-get install -y nginx
RUN rm -v /etc/nginx/sites-enabled/default
ADD docker/nginx.conf /etc/nginx/sites-enabled/
RUN echo "daemon off;" >> /etc/nginx/nginx.conf

# Install the project
RUN mkdir -p /var/www/project
ADD . /var/www/project
WORKDIR /var/www/project

# Setup the symfony project

RUN npm install
RUN npm install -g gulp
RUN gulp install
RUN curl -sS https://getcomposer.org/installer | php
RUN php composer.phar install

# Add the start script
ADD docker/start.sh /
RUN chmod 755 /start.sh

EXPOSE 80

CMD /start.sh
{'fraction_non_alphanumeric': 0.09359870898332437, 'fraction_numerical': 0.008068854222700376, 'mean_word_length': 3.7448979591836733, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 12, 'https://': 3, 'lorem ipsum': 0, 'www.': 5, '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': '439675', 'n_tokens_mistral': 662, 'n_tokens_neox': 607, 'n_words': 233}