diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..70e2ca1 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,18 @@ +FROM php:7.1.11-fpm +LABEL Eakkabin Jaikeawma + +RUN apt-get update && apt-get install -y curl git --no-install-recommends \ + && docker-php-ext-install -j$(nproc) iconv mysqli pdo pdo_mysql mbstring \ + && apt-get clean && apt-get autoremove \ + && rm -r /var/lib/apt/lists/* && rm -rf /tmp/* /var/tmp/* + +COPY ./php7-ini/20-phalcon.ini /usr/local/etc/php/conf.d/20-phalcon.ini +COPY ./php7-ini/20-mongodb.ini /usr/local/etc/php/conf.d/20-mongodb.ini +COPY ./php7-ext/phalcon-v3.2.1.so /usr/local/lib/php/extensions/no-debug-non-zts-20160303/phalcon-v3.2.1.so +COPY ./php7-ext/mongodb-v1.2.9.so /usr/local/lib/php/extensions/no-debug-non-zts-20160303/mongodb-v1.2.9.so + +WORKDIR /usr/share/nginx/html + +EXPOSE 9000 + +CMD ["php-fpm"] diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..0a9211a --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2017 codemaxz + +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 index 68383b6..e770477 100644 --- a/README.md +++ b/README.md @@ -1,2 +1 @@ -# docker-php7phalcon -Build Image with Dockerfile | PHP 7.1.11 + Phalcon 3.2.1 + Mongo 1.2.9 +# docker-php7phalcon \ No newline at end of file diff --git a/php7-ext/mongodb-v1.2.9.so b/php7-ext/mongodb-v1.2.9.so new file mode 100644 index 0000000..2499a6d Binary files /dev/null and b/php7-ext/mongodb-v1.2.9.so differ diff --git a/php7-ext/phalcon-v3.2.1.so b/php7-ext/phalcon-v3.2.1.so new file mode 100644 index 0000000..538db27 Binary files /dev/null and b/php7-ext/phalcon-v3.2.1.so differ diff --git a/php7-ini/20-mongodb.ini b/php7-ini/20-mongodb.ini new file mode 100644 index 0000000..e90c49f --- /dev/null +++ b/php7-ini/20-mongodb.ini @@ -0,0 +1 @@ +extension=mongodb-v1.2.9.so \ No newline at end of file diff --git a/php7-ini/20-phalcon.ini b/php7-ini/20-phalcon.ini new file mode 100644 index 0000000..528ce45 --- /dev/null +++ b/php7-ini/20-phalcon.ini @@ -0,0 +1 @@ +extension=phalcon-v3.2.1.so \ No newline at end of file diff --git a/php7-ini/php7.ini b/php7-ini/php7.ini new file mode 100644 index 0000000..98cf95e --- /dev/null +++ b/php7-ini/php7.ini @@ -0,0 +1,7 @@ +file_uploads = On + +post_max_size = 30M +upload_max_filesize = 30M + +memory_limit = 30M +max_execution_time = 600 \ No newline at end of file