<commit_before>FROM redis:5-alpine3.12 AS redis
FROM alpine:3.12

WORKDIR /var/www

ENTRYPOINT ["/entrypoint.sh"]

CMD ["/launch.sh"]

EXPOSE 80

RUN apk add --no-cache \
        bash \
        bash-completion \
        ca-certificates \
        curl \
        git \
        git-bash-completion \
        msmtp \
        nano \
        openssh \
        openssh-sftp-server \
        patch \
        py3-pip \
        sudo \
        supervisor \
        shadow \
        tar \
        unzip \
        wget

ENV PHP_VERSION=7.3 \
    ENABLE_REDIS=Off \
    ENABLE_CRON=Off \
    ENABLE_SSH=Off \
    NGINX_CONF=default \
    PHP_DISPLAY_ERRORS=Off \
    PHP_OPCACHE_VALIDATE=On \
    PHP_MAX_CHILDREN=30 \
    PHP_TIMEZONE=Europe/London \
    PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true \
    WEB_ROOT=/var/www \
    COMPOSER_MEMORY_LIMIT=-1 \
    COMPOSER_PROCESS_TIMEOUT=600 \
    XDEBUG_ENABLE=Off \
    XDEBUG_HOST= \
    SMTP_HOST=smtp.mailtrap.io \
    SMTP_PORT=25 \
    SMTP_USER= \
    SMTP_PASS= \
    SMTP_FROM=

RUN apk add --no-cache \
        php7=~${PHP_VERSION} \
            php7-bcmath \
            php7-ctype \
            php7-curl \
            php7-dom \
            php7-fileinfo \
            php7-fpm \
            php7-iconv \
            php7-intl \
            php7-mbstring \
            php7-mysqli \
            php7-mysqlnd \
            php7-opcache \
            php7-openssl \
            php7-pcntl \
            php7-pdo_mysql \
            php7-pecl-redis \
            php7-pecl-xdebug \
            php7-simplexml \
            php7-soap \
            php7-sodium \
            php7-tokenizer \
            php7-xml \
            php7-xmlreader \
            php7-xmlwriter \
            php7-xsl \
            php7-zip \
        composer \
        nginx \
        nodejs \
        npm && \
    npm install gulp-cli -g && \
    rm -Rf /var/www/* && \
    chmod g=u /etc/passwd && \
    echo 'Set disable_coredump false' > /etc/sudo.conf

COPY . /

RUN /build.sh

COPY --from=redis /usr/local/bin/redis-* /usr/local/bin/

USER edge
<commit_msg>Install ext-sockets<commit_after>FROM redis:5-alpine3.12 AS redis
FROM alpine:3.12

WORKDIR /var/www

ENTRYPOINT ["/entrypoint.sh"]

CMD ["/launch.sh"]

EXPOSE 80

RUN apk add --no-cache \
        bash \
        bash-completion \
        ca-certificates \
        curl \
        git \
        git-bash-completion \
        msmtp \
        nano \
        openssh \
        openssh-sftp-server \
        patch \
        py3-pip \
        sudo \
        supervisor \
        shadow \
        tar \
        unzip \
        wget

ENV PHP_VERSION=7.3 \
    ENABLE_REDIS=Off \
    ENABLE_CRON=Off \
    ENABLE_SSH=Off \
    NGINX_CONF=default \
    PHP_DISPLAY_ERRORS=Off \
    PHP_OPCACHE_VALIDATE=On \
    PHP_MAX_CHILDREN=30 \
    PHP_TIMEZONE=Europe/London \
    PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true \
    WEB_ROOT=/var/www \
    COMPOSER_MEMORY_LIMIT=-1 \
    COMPOSER_PROCESS_TIMEOUT=600 \
    XDEBUG_ENABLE=Off \
    XDEBUG_HOST= \
    SMTP_HOST=smtp.mailtrap.io \
    SMTP_PORT=25 \
    SMTP_USER= \
    SMTP_PASS= \
    SMTP_FROM=

RUN apk add --no-cache \
        php7=~${PHP_VERSION} \
            php7-bcmath \
            php7-ctype \
            php7-curl \
            php7-dom \
            php7-fileinfo \
            php7-fpm \
            php7-iconv \
            php7-intl \
            php7-mbstring \
            php7-mysqli \
            php7-mysqlnd \
            php7-opcache \
            php7-openssl \
            php7-pcntl \
            php7-pdo_mysql \
            php7-pecl-redis \
            php7-pecl-xdebug \
            php7-simplexml \
            php7-soap \
            php7-sockets \
            php7-sodium \
            php7-tokenizer \
            php7-xml \
            php7-xmlreader \
            php7-xmlwriter \
            php7-xsl \
            php7-zip \
        composer \
        nginx \
        nodejs \
        npm && \
    npm install gulp-cli -g && \
    rm -Rf /var/www/* && \
    chmod g=u /etc/passwd && \
    echo 'Set disable_coredump false' > /etc/sudo.conf

COPY . /

RUN /build.sh

COPY --from=redis /usr/local/bin/redis-* /usr/local/bin/

USER edge

{'fraction_non_alphanumeric': 0.10007165034631, 'fraction_numerical': 0.022689276331502268, 'mean_word_length': 1.1846635367762128, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, 'xml': 8}, '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': '3451497', 'n_tokens_mistral': 1622, 'n_tokens_neox': 1502, 'n_words': 234}