Skip to content

Commit 462b568

Browse files
committed
add some comments sections to the php dockerfiles
1 parent 11f7cfe commit 462b568

2 files changed

Lines changed: 29 additions & 0 deletions

File tree

php-fpm/Dockerfile-5

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,20 +42,32 @@ RUN docker-php-ext-install pdo_mysql
4242
# Install the PHP pdo_pgsql extention
4343
RUN docker-php-ext-install pdo_pgsql
4444

45+
#####################################
46+
# gd:
47+
#####################################
48+
4549
# Install the PHP gd library
4650
RUN docker-php-ext-install gd && \
4751
docker-php-ext-configure gd \
4852
--enable-gd-native-ttf \
4953
--with-jpeg-dir=/usr/lib \
5054
--with-freetype-dir=/usr/include/freetype2
5155

56+
#####################################
57+
# MongoDB:
58+
#####################################
59+
5260
ARG INSTALL_MONGO=true
5361
ENV INSTALL_MONGO ${INSTALL_MONGO}
5462
RUN if [ ${INSTALL_MONGO} = true ]; then \
5563
# Install the mongodb extention
5664
pecl install mongodb \
5765
;fi
5866

67+
#####################################
68+
# xDebug:
69+
#####################################
70+
5971
ARG INSTALL_XDEBUG=true
6072
ENV INSTALL_XDEBUG ${INSTALL_XDEBUG}
6173
RUN if [ ${INSTALL_XDEBUG} = true ]; then \
@@ -64,6 +76,7 @@ RUN if [ ${INSTALL_XDEBUG} = true ]; then \
6476
docker-php-ext-enable xdebug \
6577
;fi
6678

79+
6780
#
6881
#--------------------------------------------------------------------------
6982
# Final Touch

php-fpm/Dockerfile-70

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,20 +42,32 @@ RUN docker-php-ext-install pdo_mysql
4242
# Install the PHP pdo_pgsql extention
4343
RUN docker-php-ext-install pdo_pgsql
4444

45+
#####################################
46+
# gd:
47+
#####################################
48+
4549
# Install the PHP gd library
4650
RUN docker-php-ext-install gd && \
4751
docker-php-ext-configure gd \
4852
--enable-gd-native-ttf \
4953
--with-jpeg-dir=/usr/lib \
5054
--with-freetype-dir=/usr/include/freetype2
5155

56+
#####################################
57+
# MongoDB:
58+
#####################################
59+
5260
ARG INSTALL_MONGO=true
5361
ENV INSTALL_MONGO ${INSTALL_MONGO}
5462
RUN if [ ${INSTALL_MONGO} = true ]; then \
5563
# Install the mongodb extention
5664
pecl install mongodb \
5765
;fi
5866

67+
#####################################
68+
# xDebug:
69+
#####################################
70+
5971
ARG INSTALL_XDEBUG=true
6072
ENV INSTALL_XDEBUG ${INSTALL_XDEBUG}
6173
RUN if [ ${INSTALL_XDEBUG} = true ]; then \
@@ -64,6 +76,10 @@ RUN if [ ${INSTALL_XDEBUG} = true ]; then \
6476
docker-php-ext-enable xdebug \
6577
;fi
6678

79+
#####################################
80+
# Memcached:
81+
#####################################
82+
6783
# Install the memcached extention
6884
RUN curl -L -o /tmp/memcached.tar.gz "https://github.com/php-memcached-dev/php-memcached/archive/php7.tar.gz" \
6985
&& mkdir -p memcached \

0 commit comments

Comments
 (0)