Public | Automated Build

Last pushed: 15 days ago
Dockerfile
# # Phalcon Application Core # # Pull base image FROM debian:8 ENV PHP_VERSION 7.0 WORKDIR /var/www/phalcon # Set up the application directory VOLUME ["/var/www/phalcon"] RUN set -ex; \ apt-get update; \ apt-get install -y --no-install-recommends \ apt-transport-https \ ca-certificates \ curl \ ; \ rm -rf /var/lib/apt/lists/*; RUN echo "deb https://packages.dotdeb.org jessie all" >> /etc/apt/sources.list; \ echo "deb-src https://packages.dotdeb.org jessie all" >> /etc/apt/sources.list; RUN curl https://www.dotdeb.org/dotdeb.gpg | apt-key add - RUN apt-get update; \ apt-get install -y \ build-essential \ apt-utils \ upstart \ vim \ git \ monit \ locales \ zip \ unzip \ gzip \ amqp-tools \ cron \ ; # Install phalcon RUN curl -s https://packagecloud.io/install/repositories/phalcon/stable/script.deb.sh | bash # Install PHP RUN apt-get install -y \ php${PHP_VERSION}-fpm \ php${PHP_VERSION}-cli \ php${PHP_VERSION}-phalcon \ php${PHP_VERSION}-redis \ php${PHP_VERSION}-pgsql \ php${PHP_VERSION}-mysql \ php${PHP_VERSION}-mcrypt \ php${PHP_VERSION}-gd \ php${PHP_VERSION}-curl \ php${PHP_VERSION}-memcache \ php${PHP_VERSION}-geoip \ php${PHP_VERSION}-json \ php${PHP_VERSION}-xsl \ php${PHP_VERSION}-soap \ php${PHP_VERSION}-bcmath \ php${PHP_VERSION}-mbstring \ php${PHP_VERSION}-xdebug \ php${PHP_VERSION}-zip \ php${PHP_VERSION}-intl \ ; RUN ln -s /usr/sbin/php-fpm${PHP_VERSION} /etc/alternatives/php-fpm; \ ln -s /etc/alternatives/php-fpm /usr/bin/php-fpm; RUN locale-gen en_GB.UTF-8 \ && export LANGUAGE="en_GB.UTF-8" \ && export LANG="en_GB.UTF-8" \ && export LC_ALL="en_GB.UTF-8" \ && echo "Etc/UTC" > /etc/timezone \ && dpkg-reconfigure -f noninteractive tzdata # Install NodeJS RUN curl -sL https://deb.nodesource.com/setup_6.x | bash - \ && apt-get install -y nodejs \ && npm install -g \ bower \ grunt-cli # Install PHP composer RUN php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" \ && php composer-setup.php --install-dir=/usr/local/bin --filename=composer \ && php -r "unlink('composer-setup.php');" # Clean all data RUN cd /tmp \ && apt-get purge -y --auto-remove wget apt-utils build-essential \ && apt-get autoremove -y \ && apt-get autoclean -y \ && apt-get clean -y \ && rm -rf \ /var/lib/apt/lists/* \ /tmp/* \ /var/tmp/* \ /var/cache/* RUN mkdir /entrypoint-init.d COPY conf /etc/php/${PHP_VERSION}/ COPY scripts /etc/php/${PHP_VERSION}/init.d/ COPY init.sh /etc/php/${PHP_VERSION}/init.sh RUN chmod +x /etc/php/${PHP_VERSION}/init.sh COPY entrypoint.sh /usr/local/bin/ RUN ln -s /usr/local/bin/entrypoint.sh / # backwards compat ENTRYPOINT ["/usr/local/bin/entrypoint.sh"] ##<autogenerated>## EXPOSE 9000 9001 CMD ["php-fpm"] ##</autogenerated>##
Source Repository