<commit_before>############################################################
# Dockerfile to build uwsgi using python3 container images
# Based on Ubuntu 14.04.4
############################################################

FROM ubuntu:14.04.4
MAINTAINER ky.storm <<EMAIL>>

RUN apt-get update
RUN apt-get upgrade -y

# python 3.4 has already installed by os
RUN apt-get install -y \
            python3-pip

# clean apt-get
RUN apt-get autoclean
RUN apt-get clean
RUN apt-get autoremove

# install uwsgi
RUN pip3 install uwsgi
RUN pip3 install -U pip setuptools

# DEMO app here
COPY ./app /var/app
# install requirements, no need to use venv in docker
RUN pip3 install -r /var/app/requirements.txt


# copy again when onbuild
ONBUILD RUN rm -r /var/app
ONBUILD COPY ./app /var/app
# install requirements
ONBUILD RUN pip3 install -r /var/app/requirements.txt

# expose ports
EXPOSE 8080

CMD uwsgi --ini /var/app/uwsgi_config.ini<commit_msg>remove onbuild<commit_after>############################################################
# Dockerfile to build uwsgi using python3 container images
# Based on Ubuntu 14.04.4
############################################################

FROM ubuntu:14.04.4
MAINTAINER ky.storm <<EMAIL>>

RUN apt-get update
RUN apt-get upgrade -y

# python 3.4 has already installed by os
RUN apt-get install -y \
            python3-pip

# clean apt-get
RUN apt-get autoclean
RUN apt-get clean
RUN apt-get autoremove

# install uwsgi
RUN pip3 install uwsgi
RUN pip3 install -U pip setuptools

# DEMO app here
# map your app to /var/app directly
COPY ./app /var/app


# install requirements, no need to use venv in docker
RUN pip3 install -r /var/app/requirements.txt


# expose ports
EXPOSE 8080

CMD uwsgi --ini /var/app/uwsgi_config.ini
{'fraction_non_alphanumeric': 0.2026106696935301, 'fraction_numerical': 0.024404086265607264, 'mean_word_length': 4.022792022792022, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, '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': '1134739', 'n_tokens_mistral': 581, 'n_tokens_neox': 532, 'n_words': 203}