Public Repository

Last pushed: a year ago
Short Description
GitLab build env with debian-php
Full Description
FROM debian:jessie

ENV DEBIAN_FRONTEND noninteractive

# Upgrade
# Install the basic php web stack (php, git, node, npm, phpcs)
# Composer, bower
# Workspace
# PHP Code Sniffer and additional KRDS standards
# Grunt utility
# Save some space

RUN http_proxy= apt-get -y update && \
    http_proxy= apt-get -y --force-yes upgrade && \
    http_proxy= apt-get -y --force-yes install git npm php5-cli php5-common php5-curl php5-gd  php5-geoip php5-imagick php5-$
    curl -sS | php && mv composer.phar /usr/local/bin/composer && composer config --global cache-dir /cache

RUN mkdir -p /home/phpcs/krds && \
    curl -so /home/phpcs/phpcs.phar -L && \
    echo '#!/usr/bin/env sh'"\nphp /home/phpcs/phpcs.phar \$@" > /usr/local/bin/phpcs && chmod +x /usr/local/bin/phpcs && \
    phpcs --config-set encoding utf-8 && phpcs --config-set tab_width 4 && git clone$
    phpcs --config-set installed_paths /home/phpcs/krds && \
    ln -s /usr/bin/nodejs /usr/bin/node && \
    npm config set cache=/cache && npm install -g bower grunt-cli && \
    apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /usr/share/man/?? /usr/share/man/??_*
Docker Pull Command

Comments (0)