File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ FROM php:7.4-cli-alpine
2+
3+ LABEL maintainer="ThallisPHP <thallisphp@gmail.com>"
4+
5+ RUN set -xe \
6+ && apk add --no-cache --update --virtual .phpize-deps $PHPIZE_DEPS \
7+ wget \
8+ curl \
9+ git \
10+ build-base \
11+ libmemcached \
12+ libmemcached-libs \
13+ libmcrypt-dev \
14+ libxml2-dev \
15+ pcre-dev \
16+ zlib-dev \
17+ autoconf \
18+ cyrus-sasl-dev \
19+ libgsasl-dev \
20+ nano
21+
22+ ENV MEMCACHED_DEPS zlib-dev libmemcached-dev cyrus-sasl-dev
23+ RUN apk add --no-cache --update libmemcached-libs zlib
24+ RUN set -xe \
25+ && apk add --no-cache --update --virtual .phpize-deps $PHPIZE_DEPS \
26+ && apk add --no-cache --update --virtual .memcached-deps $MEMCACHED_DEPS \
27+ && pecl install memcached \
28+ && echo "extension=memcached.so" > /usr/local/etc/php/conf.d/20_memcached.ini
29+
30+ RUN pecl channel-update pecl.php.net
31+ RUN pecl install redis
32+ RUN docker-php-ext-install bcmath
33+ RUN docker-php-ext-install pdo
34+ RUN docker-php-ext-install pdo_mysql
35+ RUN docker-php-ext-enable redis
36+
37+ RUN php -m
38+ RUN php --ini
You can’t perform that action at this time.
0 commit comments