A docker image with Apache + Phalcon + PHP-FPM 7.2 all in Alpine Linux with 40MB~ of size ❤️
- Docker Engine ❤️
- php-fpm with extensions (gd, mbstring, soap, xml, ctype, json)
- apache2
- apache2-proxy
- libxml2-dev
- libpng-dev
- runit
- libtool
There are many reasons not to think this, however, making this container has been very useful in several cases, such as to run sites that need phalcon and do a very primitive test, feel free to improve it and give me your comments!
You only run this command in your terminal:
docker run -p HOST_PORT:80 -v YOUR_DIRECTORY:/var/www/localhost/htdocs etejeda/docker-apache-phalcon-phpfpm
And then you only enter to 127.0.0.1 in you navigator & enjoy!
Example:
docker run -p 80:80 -v $PWD/MYFIRSTWEB:/var/www/localhost/htdocs etejeda/docker-apache-phalcon-phpfpm
I provided a makefile for do this job, only run this command:
make run build
If you require other version of Phalcon or PSR, only run the docker build with the correct args, like:
docker build --build-arg PHALCON_VERSION=X.X.X --build-arg PSR_VERSION=X.X.X . -t YOURTAG
Please feel free to contribute to this project, please fork the repository and make a pull request! ❤️
Like this project? Please give it a ★ on this GitHub! (it helps me a lot)
See LICENSE for full details.
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.