<commit_before>FROM nginx:1.11.5

RUN rm -rf /etc/nginx/*

ADD src/proxy.conf /etc/nginx/proxy.conf
ADD start.sh /opt/start.sh

EXPOSE 4550

CMD ["/opt/start.sh"]<commit_msg>Basing image on python<commit_after>FROM python:3.5-slim

# Install NGINX, steps retrieved from https://github.com/nginxinc/docker-nginx/blob/master/mainline/jessie/Dockerfile
####
# Copyright (C) 2011-2016 Nginx, Inc.
# All rights reserved.
ENV NGINX_VERSION 1.11.5-1~jessie

RUN apt-key adv --keyserver hkp://pgp.mit.edu:80 --recv-keys <KEY> \
	&& echo "deb http://nginx.org/packages/mainline/debian/ jessie nginx" >> /etc/apt/sources.list \
	&& apt-get update \
	&& apt-get install --no-install-recommends --no-install-suggests -y \
						ca-certificates \
						nginx=${NGINX_VERSION} \
						nginx-module-xslt \
						nginx-module-geoip \
						nginx-module-image-filter \
						nginx-module-perl \
						nginx-module-njs \
						gettext-base \
	&& rm -rf /var/lib/apt/lists/*
####

ENV APP_DIR=/opt/sherpa
WORKDIR $APP_DIR

ADD . $APP_DIR

RUN rm -rf /etc/nginx/* && cp nginx/nginx.conf /etc/nginx/nginx.conf && cp -r nginx/api-restrictions /etc/nginx/conf.d

EXPOSE 4550

ENTRYPOINT ["./main"]
{'fraction_non_alphanumeric': 0.15928449744463374, 'fraction_numerical': 0.024701873935264053, 'mean_word_length': 2.9166666666666665, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 6, 'https://': 1, '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': '2908422', 'n_tokens_mistral': 533, 'n_tokens_neox': 460, 'n_words': 89}