Skip to content

Instantly share code, notes, and snippets.

@yohangdev
Created September 14, 2018 16:17
Show Gist options
  • Save yohangdev/31ca7c496579dd159cd8f75fc2565534 to your computer and use it in GitHub Desktop.
Save yohangdev/31ca7c496579dd159cd8f75fc2565534 to your computer and use it in GitHub Desktop.
Docker PHP 7.2 FPM + Phalcon 3 + FRAPP
FROM php:7.2.9-fpm
WORKDIR /application
RUN apt-get update && apt-get upgrade -y
RUN apt-get install -y git libpq-dev libldap2-dev libxml2-dev zlib1g-dev libpng-dev libcurl4-gnutls-dev
RUN docker-php-ext-configure pgsql --with-pgsql=/usr/local/pgsql \
&& docker-php-ext-configure ldap --with-libdir=lib/x86_64-linux-gnu/
RUN docker-php-ext-install mbstring dom xml pdo pdo_mysql pdo_pgsql pgsql ldap zip gd bcmath opcache curl fileinfo
RUN pecl install apcu \
&& pecl install mongodb \
&& pecl install xdebug
RUN git clone --depth=1 "git://github.com/phalcon/cphalcon.git" \
&& cd cphalcon/build \
&& ./install
RUN docker-php-ext-enable apcu mongodb phalcon xdebug
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment