<commit_before>FROM ubuntu:14.04
MAINTAINER <NAME> <<EMAIL>>
# This docker file is based on the work of <NAME> <<EMAIL>>
# from the docker-flask https://hub.docker.com/r/p0bailey/docker-flask/

ENV DEBIAN_FRONTEND noninteractive

RUN apt-get update && apt-get install -y \
    python-pip python-dev uwsgi-plugin-python \
    nginx supervisor curl git
RUN curl -sL https://deb.nodesource.com/setup_6.x | bash - && apt-get update 
RUN apt-get install -y nodejs && npm install npm -g
    
COPY flask_nginx.conf /etc/nginx/sites-available/
COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf
COPY app /var/www/app
RUN mkdir -p /var/log/nginx/app /var/log/uwsgi/app /var/log/supervisor
RUN rm /etc/nginx/sites-enabled/default
RUN ln -s /etc/nginx/sites-available/flask_nginx.conf /etc/nginx/sites-enabled/flask_nginx.conf
RUN echo "daemon off;" >> /etc/nginx/nginx.conf
RUN pip install -r /var/www/app/requirements.txt
RUN chown -R www-data:www-data /var/www/app
RUN chown -R www-data:www-data /var/log

WORKDIR /build
COPY .babelrc /build/
COPY package.json /build/
COPY webpack* /build/
COPY app /build/
RUN npm install
RUN npm run build
COPY ./app/static/build /var/www/app/static/build

EXPOSE 80

CMD ["/usr/bin/supervisord"]<commit_msg>Combine some RUN commands in the Dockerfile into one.<commit_after>FROM ubuntu:14.04
MAINTAINER <NAME> <<EMAIL>>
# This docker file is based on the work of <NAME> <<EMAIL>>
# from the docker-flask https://hub.docker.com/r/p0bailey/docker-flask/

ENV DEBIAN_FRONTEND noninteractive

RUN apt-get update && apt-get install -y \
    python-pip python-dev uwsgi-plugin-python \
    nginx supervisor curl git \
&& curl -sL https://deb.nodesource.com/setup_6.x | bash - && apt-get update \ 
&& apt-get install -y nodejs && npm install npm -g
    
COPY flask_nginx.conf /etc/nginx/sites-available/
COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf
COPY app /var/www/app
RUN mkdir -p /var/log/nginx/app /var/log/uwsgi/app /var/log/supervisor \
&& rm /etc/nginx/sites-enabled/default \
&& ln -s /etc/nginx/sites-available/flask_nginx.conf /etc/nginx/sites-enabled/flask_nginx.conf \
&& echo "daemon off;" >> /etc/nginx/nginx.conf \
&& pip install -r /var/www/app/requirements.txt \
&& chown -R www-data:www-data /var/www/app \
&& chown -R www-data:www-data /var/log

WORKDIR /build
COPY .babelrc /build/
COPY package.json /build/
COPY webpack* /build/
COPY app /build/
RUN npm install
RUN npm run build
COPY ./app/static/build /var/www/app/static/build

EXPOSE 80

CMD ["/usr/bin/supervisord"]
{'fraction_non_alphanumeric': 0.13650668764752164, 'fraction_numerical': 0.006294256490952006, 'mean_word_length': 3.445804195804196, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 19, 'https://': 4, 'lorem ipsum': 0, 'www.': 16, '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': '280273', 'n_tokens_mistral': 1003, 'n_tokens_neox': 930, 'n_words': 245}