<commit_before>#
# Nginx Dockerfile
#
# https://github.com/tamboraorg/docker/crenginx
#

# Pull base image.
FROM tamboraorg/creubuntu:2011.0
MAINTAINER <NAME> <<EMAIL>>

# version: yyyy.n for stable versions / 0.yyyy for development
#ENV CRE_VERSION 0.2010 
ENV NGINX_VERSION 1.14.1

# Install Nginx
RUN \
  add-apt-repository -y ppa:nginx/stable && \
  apt-get update && \
  apt-get install -y nginx && \
  rm -rf /var/lib/apt/lists/* && \
  rm /etc/nginx/sites-enabled/default && \
  echo "\ndaemon off;" >> /etc/nginx/nginx.conf && \
  sed -i 's/worker_processes  1/worker_processes  auto/' /etc/nginx/nginx.conf && \
  chown -R www-data:www-data /var/lib/nginx

RUN mkdir -p /cre && touch /cre/versions.txt && \ 
    echo "$(date +'%F %R') \t creNginx \t $(/usr/sbin/nginx -v 2>&1 | sed -e "s/^nginx version: nginx\///" )" >> /cre/versions.txt 

# Define mountable directories.
VOLUME ["/etc/nginx/sites-enabled", "/etc/nginx/conf.d", "/var/log/nginx", "/cre/www"]

# Define working directory.
#COPY cre /cre
WORKDIR /cre/
#WORKDIR /etc/nginx

# Expose ports (done by children). 
#EXPOSE 80
#EXPOSE 443

# Define default command.
#CMD ["nginx"]
ENTRYPOINT ["/cre/nginx-entrypoint.sh"]
CMD ["shoreman", "/cre/nginx-procfile"]<commit_msg>Copy cre directory<commit_after>#
# Nginx Dockerfile
#
# https://github.com/tamboraorg/docker/crenginx
#

# Pull base image.
FROM tamboraorg/creubuntu:2011.0
MAINTAINER <NAME> <<EMAIL>>

# version: yyyy.n for stable versions / 0.yyyy for development
#ENV CRE_VERSION 0.2010 
ENV NGINX_VERSION 1.14.1

# Install Nginx
RUN \
  add-apt-repository -y ppa:nginx/stable && \
  apt-get update && \
  apt-get install -y nginx && \
  rm -rf /var/lib/apt/lists/* && \
  rm /etc/nginx/sites-enabled/default && \
  echo "\ndaemon off;" >> /etc/nginx/nginx.conf && \
  sed -i 's/worker_processes  1/worker_processes  auto/' /etc/nginx/nginx.conf && \
  chown -R www-data:www-data /var/lib/nginx

RUN mkdir -p /cre && touch /cre/versions.txt && \ 
    echo "$(date +'%F %R') \t creNginx \t $(/usr/sbin/nginx -v 2>&1 | sed -e "s/^nginx version: nginx\///" )" >> /cre/versions.txt 

# Define mountable directories.
VOLUME ["/etc/nginx/sites-enabled", "/etc/nginx/conf.d", "/var/log/nginx", "/cre/www"]

# Define working directory.
COPY cre /cre
WORKDIR /cre/
#WORKDIR /etc/nginx

# Expose ports (done by children). 
#EXPOSE 80
#EXPOSE 443

# Define default command.
#CMD ["nginx"]
ENTRYPOINT ["/cre/nginx-entrypoint.sh"]
CMD ["shoreman", "/cre/nginx-procfile"]
{'fraction_non_alphanumeric': 0.17673107890499196, 'fraction_numerical': 0.018518518518518517, 'mean_word_length': 3.2190152801358236, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 19, 'https://': 2, 'lorem ipsum': 0, 'www.': 6, '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': '6112061', 'n_tokens_mistral': 1034, 'n_tokens_neox': 961, 'n_words': 233}