<commit_before>{% set cleanupCommand = 'apt-get clean; rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /usr/share/doc/*' %}
{% spaceless %}
    {% if phpVersion == '7.0.x' %}
        {% set image = 'phpdockerio/php7-fpm:latest' %}
    {% elseif phpVersion == '7.1.x' %}
        {% set image = 'phpdockerio/php71-fpm:latest' %}
    {% else %}
        {% set image = 'phpdockerio/php56-fpm:latest' %}
    {% endif %}
FROM {{ image }}

{% if extensionPackages %}
# Install selected extensions and other stuff
RUN apt-get update \
    && apt-get -y --no-install-recommends install {% for package in extensionPackages %} {{ package }}{% endfor %} \
    && {{ cleanupCommand }}
{% endif %}

{% if applicationType == 'phalcon' %}
    {% spaceless %}
        {% if phpVersion == '5.6.x' %}
            {% set phalconPackage = 'php5-phalcon' %}
        {% elseif phpVersion == '7.0.x' %}
            {% set phalconPackage = 'php7.0-phalcon' %}
        {% elseif phpVersion == '7.1.x' %}
            {% set phalconPackage = 'php7.1-phalcon' %}
        {% endif %}
    {% endspaceless %}

# Install phalcon
RUN curl -s https://packagecloud.io/install/repositories/phalcon/stable/script.deb.sh | bash \
    && apt-get install -y {{ phalconPackage }} \
    && {{ cleanupCommand }}
{% endif %}

WORKDIR "/application"
{% endspaceless %}<commit_msg>install git and ssh to php container<commit_after>{% set cleanupCommand = 'apt-get clean; rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /usr/share/doc/*' %}
{% spaceless %}
    {% if phpVersion == '7.0.x' %}
        {% set image = 'phpdockerio/php7-fpm:latest' %}
    {% elseif phpVersion == '7.1.x' %}
        {% set image = 'phpdockerio/php71-fpm:latest' %}
    {% else %}
        {% set image = 'phpdockerio/php56-fpm:latest' %}
    {% endif %}
FROM {{ image }}

{% if extensionPackages %}
# Install selected extensions and other stuff
RUN apt-get update \
    && apt-get -y --no-install-recommends install {% for package in extensionPackages %} {{ package }}{% endfor %} \
    && {{ cleanupCommand }}
{% endif %}

{% if applicationType == 'phalcon' %}
    {% spaceless %}
        {% if phpVersion == '5.6.x' %}
            {% set phalconPackage = 'php5-phalcon' %}
        {% elseif phpVersion == '7.0.x' %}
            {% set phalconPackage = 'php7.0-phalcon' %}
        {% elseif phpVersion == '7.1.x' %}
            {% set phalconPackage = 'php7.1-phalcon' %}
        {% endif %}
    {% endspaceless %}

# Install phalcon
RUN curl -s https://packagecloud.io/install/repositories/phalcon/stable/script.deb.sh | bash \
    && apt-get install -y {{ phalconPackage }} \
    && {{ cleanupCommand }}
{% endif %}

RUN apt-get -y --no-install-recommends install git ssh && {{ cleanupCommand }}

WORKDIR "/application"
{% endspaceless %}
{'fraction_non_alphanumeric': 0.18648355619804843, 'fraction_numerical': 0.014456089627755691, 'mean_word_length': 2.5901426718547342, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '6955079', 'n_tokens_mistral': 1048, 'n_tokens_neox': 906, 'n_words': 202}