-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
25 lines (22 loc) · 1.34 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
FROM php:7.4.7-alpine
LABEL maintainer="[email protected]"
ENV \
PHALCON_VERSION=4.0.6 \
REDIS_VERSION=3.0.0
RUN set -x \
&& apk add --no-cache bzip2-dev zlib-dev libpng-dev gettext-dev gmp-dev imap-dev icu-dev openldap-dev libxml2-dev tidyhtml-dev libxslt-dev libzip-dev \
&& docker-php-ext-install bcmath bz2 calendar dba exif gd gettext gmp imap intl ldap soap sockets tidy pdo_mysql xmlrpc xsl zip \
&& curl -LO https://github.com/phpredis/phpredis/archive/${REDIS_VERSION}.tar.gz \
&& tar -zxf ${REDIS_VERSION}.tar.gz \
&& docker-php-ext-install ${pwd}/phpredis-${REDIS_VERSION} \
&& curl -LO https://github.com/jbboehr/php-psr/archive/v1.0.0.tar.gz \
&& tar -zxf v1.0.0.tar.gz \
&& docker-php-ext-install ${pwd}/php-psr-1.0.0 \
&& curl -LO https://github.com/phalcon/cphalcon/archive/v${PHALCON_VERSION}.tar.gz \
&& tar -zxf v${PHALCON_VERSION}.tar.gz \
&& docker-php-ext-install ${pwd}/cphalcon-${PHALCON_VERSION}/build/php7/64bits \
&& rm -r ${REDIS_VERSION}.tar.gz phpredis-${REDIS_VERSION} v1.0.0.tar.gz php-psr-1.0.0 v${PHALCON_VERSION}.tar.gz cphalcon-${PHALCON_VERSION} \
&& rm -rf /var/cache/apk/* \
&& php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" \
&& php composer-setup.php && php -r "unlink('composer-setup.php');" \
&& mv composer.phar /usr/bin/composer