<commit_before>FROM nginx:1.11.8-alpine
MAINTAINER <NAME>

# Remove unnecessary default file
RUN rm /etc/nginx/conf.d/default.conf

# nginx volumes to persist data
VOLUME /etc/nginx

# Add default configuration
COPY config/jenkins.conf /etc/nginx/conf.d/jenkins.conf
COPY config/nginx.conf /etc/nginx/nginx.conf

# Remove write access from config files to protect from accidental damage
RUN chmod -v 0444 /etc/nginx/conf.d/jenkins.conf \
  && chmod -v 0444 /etc/nginx/nginx.conf

# Create SSL directory
RUN mkdir /etc/nginx/ssl

# Copy SSL files
COPY config/ssl/server.crt /etc/nginx/ssl/server.crt
COPY config/ssl/server.key /etc/nginx/ssl/server.key

# Remove write access from SSL files to protect from accidental damage
RUN chmod -v 0444 /etc/nginx/ssl/server.crt \
  && chmod -v 0444 /etc/nginx/ssl/server.key<commit_msg>Bumped NGINX to latest version, removed embedded SSL files, and fixed up volumes.<commit_after>FROM nginx:1.11.10-alpine
MAINTAINER <NAME>

# Remove unnecessary default file
RUN rm /etc/nginx/conf.d/default.conf

# Add configuration files
COPY config/jenkins.conf /etc/nginx/conf.d/jenkins.conf
COPY config/nginx.conf /etc/nginx/nginx.conf

# Remove write access from config files to protect from accidental damage
RUN chmod -v 0444 /etc/nginx/conf.d/jenkins.conf \
  && chmod -v 0444 /etc/nginx/nginx.conf

# Create volume to persist SSL data
VOLUME /etc/ssl/certs/nginx
{'fraction_non_alphanumeric': 0.10164638511095204, 'fraction_numerical': 0.023622047244094488, 'mean_word_length': 3.888111888111888, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '6505429', 'n_tokens_mistral': 522, 'n_tokens_neox': 482, 'n_words': 141}