<commit_before>FROM  nginx:alpine
WORKDIR  /usr/share/nginx/html
EXPOSE  80
ENV  PRODUCTION_MODE=on
ENV  DEVELOPMENT_MODE=off
ENV  NGINX_HOST=localhost
ENV  NGINX_PORT=80
RUN  mkdir -p /etc/nginx/logs \
     /etc/nginx/conf.d \
     /etc/nginx/includes.d \
     /etc/nginx/sites-available \
     /etc/nginx/sites-enabled \
  && rm -Rf /etc/nginx/nginx.conf \
  && rm -Rf /etc/nginx/conf.d/* \
  && rm -Rf /etc/nginx/includes.d/* \
  && rm -Rf /etc/nginx/sites-available/* \
  && rm -Rf /etc/nginx/sites-enabled/*
COPY  nginx.conf.template /etc/nginx/
COPY  conf.d/* /etc/nginx/conf.d/
COPY  root/envsubst /root/envsubst
COPY  root/entry /root/entry
COPY  root/test /root/test
RUN  ls /etc/nginx/nginx.conf.template | /root/envsubst \
  && ls /etc/nginx/conf.d/*.conf.template | /root/envsubst \
  && ls /etc/nginx/includes.d/*.conf.template | /root/envsubst \
  && ls /etc/nginx/sites-available/*.conf.template | /root/envsubst \
  && ls /etc/nginx/sites-enabled/*.conf.template | /root/envsubst \
ENTRYPOINT  ["/root/entry"]<commit_msg>fix: handle templating only in entrypoint<commit_after>FROM  nginx:alpine
WORKDIR  /usr/share/nginx/html
EXPOSE  80
ENV  PRODUCTION_MODE=on
ENV  DEVELOPMENT_MODE=off
ENV  NGINX_HOST=localhost
ENV  NGINX_PORT=80
RUN  mkdir -p /etc/nginx/logs \
     /etc/nginx/conf.d \
     /etc/nginx/includes.d \
     /etc/nginx/sites-available \
     /etc/nginx/sites-enabled \
  && rm -Rf /etc/nginx/nginx.conf \
  && rm -Rf /etc/nginx/conf.d/* \
  && rm -Rf /etc/nginx/includes.d/* \
  && rm -Rf /etc/nginx/sites-available/* \
  && rm -Rf /etc/nginx/sites-enabled/*
COPY  nginx.conf.template /etc/nginx/
COPY  conf.d/* /etc/nginx/conf.d/
COPY  root/envsubst /root/envsubst
COPY  root/entry /root/entry
COPY  root/test /root/test
ENTRYPOINT  ["/root/entry"]
{'fraction_non_alphanumeric': 0.16292134831460675, 'fraction_numerical': 0.0044943820224719105, 'mean_word_length': 2.672164948453608, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '1107977', 'n_tokens_mistral': 778, 'n_tokens_neox': 737, 'n_words': 128}