-
Notifications
You must be signed in to change notification settings - Fork 0
/
php-dockerfile
42 lines (33 loc) · 1.28 KB
/
php-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
FROM php:7-fpm-alpine
RUN echo $PHP_INI_DIR
# Use the default production configuration
RUN mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini"
# Make a fixed configutation folder to be shared among the host and the image
RUN ln -s "$PHP_INI_DIR" "/php-fpm"
RUN if [ ! -d /srv ]; then mkdir /srv; fi
# install php extension here
# RUN apt-get update && apt-get install -y \
# libfreetype6-dev \
# libjpeg62-turbo-dev \
# libpng-dev \
# && docker-php-ext-configure gd --with-freetype --with-jpeg \
# && docker-php-ext-install -j$(nproc) gd
# RUN pecl install redis-5.1.1 \
# && pecl install xdebug-2.8.1 \
# && docker-php-ext-enable redis xdebug
# RUN apt-get update && apt-get install -y libmemcached-dev zlib1g-dev \
# && pecl install memcached-2.2.0 \
# && docker-php-ext-enable memcached
# RUN curl -fsSL 'https://xcache.lighttpd.net/pub/Releases/3.2.0/xcache-3.2.0.tar.gz' -o xcache.tar.gz \
# && mkdir -p xcache \
# && tar -xf xcache.tar.gz -C xcache --strip-components=1 \
# && rm xcache.tar.gz \
# && ( \
# cd xcache \
# && phpize \
# && ./configure --enable-xcache \
# && make -j "$(nproc)" \
# && make install \
# ) \
# && rm -r xcache \
# && docker-php-ext-enable xcache