Sign inSign up

angelwq/phalcon

By angelwq

Updated over 5 years ago

php-fpm + Phalcon framework + PSR extension

Image
1

183

angelwq/phalcon repository overview

FROM php:7.4-fpm

ARG PHALCON_VERSION=4.0.6

RUN apt update

# Install Phalcon
RUN apt install -y unzip libpcre3-dev gcc make re2c \
    && curl -L -o /tmp/cphalcon.zip https://github.com/phalcon/cphalcon/archive/v${PHALCON_VERSION}.zip \
    && unzip -d /tmp/ /tmp/cphalcon.zip \
    && cd /tmp/cphalcon-${PHALCON_VERSION}/build \
    && ./install \
    && echo "extension=phalcon.so" >> /usr/local/etc/php/conf.d/phalcon.ini  \
    && rm -rf /tmp/cphalcon*

# Install PSR
RUN apt install -y git \
    && git clone https://github.com/jbboehr/php-psr.git /root/psr  \
    && cd /root/psr \
    && phpize \
    && ./configure \
    && make \
    && make test \
    && make install \
    && echo "extension=psr.so" > /usr/local/etc/php/conf.d/29-psr.ini \
    && cd && rm -Rf /root/psr


# Clean repos
RUN apt clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

WORKDIR /var/www/html

Tag summary

Content type

Image

Digest

Size

169.9 MB

Last updated

over 5 years ago

docker pull angelwq/phalcon:4.0.6