-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
36 lines (31 loc) · 1.1 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
ARG PHP_VER
FROM php:${PHP_VER}-fpm-alpine
ARG PHPUNIT_VER
ARG XDEBUG_VER
LABEL maintainer="Georgios Sokianos <[email protected]>"
RUN apk add --update --no-cache bash \
autoconf \
build-base \
cmake \
libxml2-dev \
linux-headers; \
docker-php-ext-configure soap --enable-soap; \
docker-php-ext-install \
mysqli \
pdo \
pdo_mysql \
soap; \
pecl install redis && \
docker-php-ext-enable mysqli pdo pdo_mysql redis; \
pecl install xdebug-${XDEBUG_VER} && \
docker-php-ext-enable xdebug; \
curl -fsSkL "https://getcomposer.org/installer" -o /tmp/composer-setup.php && \
php /tmp/composer-setup.php --no-ansi --install-dir=/usr/local/bin --filename=composer && \
rm -rf /tmp/composer-setup.php; \
curl -fsSkL "https://phar.phpunit.de/phpunit-${PHPUNIT_VER}.phar" -o /usr/local/bin/phpunit && \
chmod +x /usr/local/bin/phpunit; \
apk del curl autoconf cmake build-base linux-headers; \
apk cache clean; \
rm -rf /var/cache/apk/* /tmp/* /var/tmp/*;
COPY ./configs/php.ini /usr/local/etc/php/conf.d/php.ini
CMD php-fpm -F -R