<commit_before>FROM alpine
MAINTAINER <NAME> <<EMAIL>>

# Install nginx
RUN version=$(egrep -o '^[0-9]+\.[0-9]+' /etc/alpine-release) && \
    apk --no-cache --no-progress upgrade && \
    apk --no-cache --no-progress add apache2-utils bash curl openssl shadow \
                tini tzdata && \
    addgroup -S nginx && \
    adduser -S -D -H -h /var/cache/nginx -s /sbin/nologin -G nginx \
                -g 'Nginx User' nginx && \
    curl -LSs https://nginx.org/keys/nginx_signing.rsa.pub \
                -o /etc/apk/keys/nginx_signing.rsa.pub && \
    echo "https://nginx.org/packages/mainline/alpine/v${version}/main" \
                >>/etc/apk/repositories && \
    apk add --no-cache --no-progress nginx && \
    sed -i 's/#gzip/gzip/' /etc/nginx/nginx.conf && \
    sed -i "/http_x_forwarded_for\"';/s/';/ '/" /etc/nginx/nginx.conf && \
    sed -i "/http_x_forwarded_for/a \\\
                      '\$request_time \$upstream_response_time';" \
                /etc/nginx/nginx.conf && \
    echo -e "\n\nstream {\n    include /etc/nginx/conf.d/*.stream;\n}" \
                >>/etc/nginx/nginx.conf && \
    [ -d /srv/www ] || mkdir -p /srv/www && \
    mv /usr/share/nginx/html/index.html /srv/www/ && \
    apk add --no-cache --no-progress --virtual .gettext gettext && \
    mv /usr/bin/envsubst /usr/local/bin/ && \
    runDeps="$(scanelf --needed --nobanner /usr/local/bin/envsubst | \
                awk '{ gsub(/,/, "\nso:", $2); print "so:" $2 }' | \<commit_msg>Dockerfile don't fail on index.html<commit_after>FROM alpine
MAINTAINER <NAME> <<EMAIL>>

# Install nginx
RUN version=$(egrep -o '^[0-9]+\.[0-9]+' /etc/alpine-release) && \
    apk --no-cache --no-progress upgrade && \
    apk --no-cache --no-progress add apache2-utils bash curl openssl shadow \
                tini tzdata && \
    addgroup -S nginx && \
    adduser -S -D -H -h /var/cache/nginx -s /sbin/nologin -G nginx \
                -g 'Nginx User' nginx && \
    curl -LSs https://nginx.org/keys/nginx_signing.rsa.pub \
                -o /etc/apk/keys/nginx_signing.rsa.pub && \
    echo "https://nginx.org/packages/mainline/alpine/v${version}/main" \
                >>/etc/apk/repositories && \
    apk add --no-cache --no-progress nginx && \
    sed -i 's/#gzip/gzip/' /etc/nginx/nginx.conf && \
    sed -i "/http_x_forwarded_for\"';/s/';/ '/" /etc/nginx/nginx.conf && \
    sed -i "/http_x_forwarded_for/a \\\
                      '\$request_time \$upstream_response_time';" \
                /etc/nginx/nginx.conf && \
    echo -e "\n\nstream {\n    include /etc/nginx/conf.d/*.stream;\n}" \
                >>/etc/nginx/nginx.conf && \
    [ -d /srv/www ] || mkdir -p /srv/www && \
    { mv /usr/share/nginx/html/index.html /srv/www/ || :; } && \
    apk add --no-cache --no-progress --virtual .gettext gettext && \
    mv /usr/bin/envsubst /usr/local/bin/ && \
    runDeps="$(scanelf --needed --nobanner /usr/local/bin/envsubst | \
                awk '{ gsub(/,/, "\nso:", $2); print "so:" $2 }' | \
{'fraction_non_alphanumeric': 0.20093147039254824, 'fraction_numerical': 0.004657351962741184, 'mean_word_length': 1.7791127541589649, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 17, 'https://': 4, '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': '1134788', 'n_tokens_mistral': 1196, 'n_tokens_neox': 1126, 'n_words': 218}