Skip to content

Commit

Permalink
start project
Browse files Browse the repository at this point in the history
  • Loading branch information
coachmaxz committed Dec 6, 2017
1 parent 9658857 commit 08e2c58
Show file tree
Hide file tree
Showing 8 changed files with 49 additions and 2 deletions.
18 changes: 18 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
FROM php:7.1.11-fpm
LABEL Eakkabin Jaikeawma <eakkabin@drivesoft.co.th>

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"]
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -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.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
# docker-php7phalcon
Build Image with Dockerfile | PHP 7.1.11 + Phalcon 3.2.1 + Mongo 1.2.9
# docker-php7phalcon
Binary file added php7-ext/mongodb-v1.2.9.so
Binary file not shown.
Binary file added php7-ext/phalcon-v3.2.1.so
Binary file not shown.
1 change: 1 addition & 0 deletions php7-ini/20-mongodb.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
extension=mongodb-v1.2.9.so
1 change: 1 addition & 0 deletions php7-ini/20-phalcon.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
extension=phalcon-v3.2.1.so
7 changes: 7 additions & 0 deletions php7-ini/php7.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
file_uploads = On

post_max_size = 30M
upload_max_filesize = 30M

memory_limit = 30M
max_execution_time = 600

0 comments on commit 08e2c58

Please sign in to comment.