<commit_before>FROM nginx:stable-alpine

COPY ./tools/coyote.bin /usr/local/bin/coyote
COPY ./tools/suexec.bin /usr/local/bin/suexec
COPY ./tools/request.sh /usr/local/bin/certificate 

RUN echo "\033[36m === Setup === \033[0m" \
    && set -x \
    && apk --update --no-cache add openssl ca-certificates\
    && chmod +x \
        /usr/local/bin/coyote \
        /usr/local/bin/suexec \
        /usr/local/bin/certificate \
    && adduser -HD -s /bin/false -G nginx -S coyote \
    && mkdir \
        /cert \
        /etc/nginx/partial.d \
        /etc/coyote \
        /var/cache/coyote/ \
    && echo "\033[36m === Coyote :: Account Key === \033[0m" \
    && openssl genrsa 4096 > /etc/coyote/account.key \
    && chown coyote /etc/coyote/account.key \
    && chmod 600 /etc/coyote/account.key

COPY ./files/nginx.challenges.conf /etc/nginx/partial.d/challenges.conf
COPY ./files/nginx.default.conf /etc/nginx/conf.d/default.conf

RUN echo "\033[36m === Nginx :: Challenges === \033[0m" \
    && set -x \
    && chown nginx:nginx /var/cache/coyote/ \
    && chmod 770 /var/cache/coyote/

VOLUME /cert

EXPOSE 443<commit_msg>Updated Dockerfile<commit_after>FROM nginx:stable-alpine

ARG coyote_version=v1.2.0

ADD https://github.com/MagnaXSoftware/coyote/releases/download/${coyote_version}/coyote-linux-amd64 /usr/local/bin/coyote
ADD http://af.it-test.pw/su-exec/alpine/suexec /usr/local/bin/suexec
COPY ./files/request.sh /usr/local/bin/certificate.sh

RUN set -x \
    && apk --update --no-cache add openssl ca-certificates\
    && chmod +x \
        /usr/local/bin/coyote \
        /usr/local/bin/suexec \
        /usr/local/bin/certificate.sh \
    && adduser -HD -s /bin/false -G nginx -S coyote \
    && mkdir \
        /cert \
        /etc/nginx/partial.d \
        /etc/coyote \
        /var/cache/coyote/ \
    && openssl genrsa 4096 > /etc/coyote/account.key \
    && chown coyote /etc/coyote/account.key \
    && chmod 600 /etc/coyote/account.key \
    && chown nginx:nginx /var/cache/coyote/ \
    && chmod 770 /var/cache/coyote/

COPY ./files/nginx.challenges.conf /etc/nginx/partial.d/challenges.conf
COPY ./files/nginx.default.conf /etc/nginx/conf.d/default.conf

VOLUME /cert
{'fraction_non_alphanumeric': 0.16492027334851936, 'fraction_numerical': 0.025056947608200455, 'mean_word_length': 2.210526315789474, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3590244', 'n_tokens_mistral': 939, 'n_tokens_neox': 867, 'n_words': 146}