-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
38 lines (31 loc) · 1.53 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
FROM php:7.2-cli-stretch
LABEL maintainer "https://github.com/amq/"
# packages and php modules
RUN buildDeps="libxml2-dev zlib1g-dev" \
&& apt-get update -y \
&& apt-get install -y $buildDeps unzip git --no-install-recommends --no-install-suggests \
&& pecl install redis xdebug \
&& docker-php-ext-enable redis xdebug \
&& docker-php-ext-install opcache pdo_mysql mysqli soap zip \
&& rm -rf /var/lib/apt/lists/* \
&& apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false $buildDeps
# cphalcon
ENV PHALCON_VERSION=3.4.2
RUN curl -LO https://github.com/phalcon/cphalcon/archive/v${PHALCON_VERSION}.tar.gz \
&& tar xzf v${PHALCON_VERSION}.tar.gz \
&& docker-php-ext-install ${PWD}/cphalcon-${PHALCON_VERSION}/build/php7/64bits \
&& rm -rf v${PHALCON_VERSION}.tar.gz cphalcon-${PHALCON_VERSION}
# devtools
ENV DEVTOOLS_VERSION=3.4.1
RUN curl -LO https://github.com/phalcon/phalcon-devtools/archive/v${DEVTOOLS_VERSION}.tar.gz \
&& tar xzf v${DEVTOOLS_VERSION}.tar.gz \
&& mv phalcon-devtools-${DEVTOOLS_VERSION} /usr/local/phalcon-devtools \
&& ln -s /usr/local/phalcon-devtools/phalcon.php /usr/local/bin/phalcon \
&& rm -f v${DEVTOOLS_VERSION}.tar.gz
# composer
ENV COMPOSER_VERSION=1.8.3
RUN curl -L https://getcomposer.org/installer -o composer-setup.php \
&& php composer-setup.php --version=${COMPOSER_VERSION} --install-dir=/usr/local/bin --filename=composer \
&& rm -f composer-setup.php
WORKDIR /app
RUN sed -ri 's/^www-data:x:33:33:/www-data:x:1000:1000:/' /etc/passwd