diff --git a/Dockerfile-56 b/Dockerfile-56 new file mode 100644 index 0000000..4f1d94d --- /dev/null +++ b/Dockerfile-56 @@ -0,0 +1,51 @@ +# +#-------------------------------------------------------------------------- +# Image Setup +#-------------------------------------------------------------------------- +# + +FROM php:5.6-fpm + +MAINTAINER Mahmoud Zalt + +# +#-------------------------------------------------------------------------- +# Software's Installation +#-------------------------------------------------------------------------- +# +# Installing tools and PHP extentions using "apt", "docker-php", "pecl", +# + +# Install "curl", "libmemcached-dev", "libpq-dev", "libjpeg-dev", +# "libpng12-dev", "libfreetype6-dev", "libssl-dev", "libmcrypt-dev", +RUN apt-get update && \ + apt-get install -y --no-install-recommends \ + curl \ + libmemcached-dev \ + libz-dev \ + libpq-dev \ + libjpeg-dev \ + libpng12-dev \ + libfreetype6-dev \ + libssl-dev \ + libmcrypt-dev + +# Install the PHP mcrypt extention +RUN docker-php-ext-install mcrypt + +# Install the PHP pdo_mysql extention +RUN docker-php-ext-install pdo_mysql + +# Install the PHP pdo_pgsql extention +RUN docker-php-ext-install pdo_pgsql + +##################################### +# gd: +##################################### + +# Install the PHP gd library +RUN docker-php-ext-install gd && \ + docker-php-ext-configure gd \ + --enable-gd-native-ttf \ + --with-jpeg-dir=/usr/lib \ + --with-freetype-dir=/usr/include/freetype2 diff --git a/Dockerfile-70 b/Dockerfile-70 new file mode 100644 index 0000000..3525b63 --- /dev/null +++ b/Dockerfile-70 @@ -0,0 +1,70 @@ +# +#-------------------------------------------------------------------------- +# Image Setup +#-------------------------------------------------------------------------- +# + +FROM php:7.0-fpm + +MAINTAINER Mahmoud Zalt + +# +#-------------------------------------------------------------------------- +# Software's Installation +#-------------------------------------------------------------------------- +# +# Installing tools and PHP extentions using "apt", "docker-php", "pecl", +# + +# Install "curl", "libmemcached-dev", "libpq-dev", "libjpeg-dev", +# "libpng12-dev", "libfreetype6-dev", "libssl-dev", "libmcrypt-dev", +RUN apt-get update && \ + apt-get install -y --no-install-recommends \ + curl \ + libmemcached-dev \ + libz-dev \ + libpq-dev \ + libjpeg-dev \ + libpng12-dev \ + libfreetype6-dev \ + libssl-dev \ + libmcrypt-dev + +# Install the PHP mcrypt extention +RUN docker-php-ext-install mcrypt + +# Install the PHP pdo_mysql extention +RUN docker-php-ext-install pdo_mysql + +# Install the PHP pdo_pgsql extention +RUN docker-php-ext-install pdo_pgsql + +##################################### +# gd: +##################################### + +# Install the PHP gd library +RUN docker-php-ext-install gd && \ + docker-php-ext-configure gd \ + --enable-gd-native-ttf \ + --with-jpeg-dir=/usr/lib \ + --with-freetype-dir=/usr/include/freetype2 + +##################################### +# Memcached: +##################################### + +# Install the memcached extention +RUN curl -L -o /tmp/memcached.tar.gz "https://github.com/php-memcached-dev/php-memcached/archive/php7.tar.gz" \ + && mkdir -p memcached \ + && tar -C memcached -zxvf /tmp/memcached.tar.gz --strip 1 \ + && ( \ + cd memcached \ + && phpize \ + && ./configure \ + && make -j$(nproc) \ + && make install \ + ) \ + && rm -r memcached \ + && rm /tmp/memcached.tar.gz \ + && docker-php-ext-enable memcached diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..81d18d8 --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) 2016 Mahmoud Zalt (mahmoud@zalt.me) + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. diff --git a/README.md b/README.md new file mode 100644 index 0000000..53b4273 --- /dev/null +++ b/README.md @@ -0,0 +1,4 @@ +#LaraDock PHP-FPM Base Image + + +Visit the [LaraDock](https://github.com/LaraDock/laradock) repository. \ No newline at end of file