-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
45 lines (41 loc) · 1.43 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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
FROM php:8.1-fpm-alpine
LABEL maintainer="Dwi Agus Purwanto <github.com/mrcoco>"
ARG PHALCON_VERSION=5.1.2
RUN set -xe && \
apk add --no-cache --virtual .build-deps \
autoconf \
g++ \
make \
libpq-dev \
libpng-dev \
libpng \
libjpeg-turbo-dev \
libwebp-dev \
freetype-dev \
zlib-dev \
libxpm-dev \
gd \
postgresql \
&& docker-php-ext-install pdo php81-pdo_pgsql gd \
&& pecl install phalcon-5.1.2 \
&& docker-php-ext-enable phalcon \
# && docker-php-source extract \
# && pecl channel-update pecl.php.net \
# && pecl install phalcon-5.1.2 \
# && docker-php-ext-install phalcon \
# && echo "extension=phalcon.so" > /usr/local/etc/php/conf.d/phalcon.ini &&\
# Install ext-phalcon
# curl -LO https://github.com/phalcon/cphalcon/archive/v${PHALCON_VERSION}.tar.gz && \
# tar xzf /v${PHALCON_VERSION}.tar.gz && \
# docker-php-ext-install -j $(getconf _NPROCESSORS_ONLN) \
# /cphalcon-${PHALCON_VERSION}/build/phalcon \
# && \
# # Remove all temp files
# rm -r \
# /v${PHALCON_VERSION}.tar.gz \
# /cphalcon-${PHALCON_VERSION} \
&& \
docker-php-source delete && \
apk del .build-deps && \
php -m
COPY docker-phalcon-* /usr/local/bin/