Sign inSign up

marcellodesales/php-apache-cakephp-mysql

By marcellodesales

•Updated almost 11 years ago

Container for CakePHP applications depending on Apache Modules and MySQL PDO.

Image
0

6.2K

marcellodesales/php-apache-cakephp-mysql repository overview

⁠Docker image for php apache for cake-php apps

Since CakePHP apps require MySQL PDO to be installed, I found this to be a very time-consuming. I spent around 5 hours to get this properly configured. CakePHP requires the following:

This image's parent is the latest PHP/Apache image. See more at https://hub.docker.com/_/php/⁠.

Here's a Dockerfile that will work for your CakePHP Application.

FROM marcellodesales/php-apache-cakephp-mysql

ADD . /var/www/html

# In case you need write permissions in a given directory, do it here
RUN mkdir /var/www/html/api/tmp && chmod 777 /var/www/html/api/tmp

CMD ["apache2-foreground"]

After that, just perform a regular build:

docker build -t myCakePhpApp .

Then you simply run your app!

docker run -ti myCakePhpApp

Tag summary

Content type

Image

Digest

sha256:72ae61868…

Size

158.8 MB

Last updated

almost 11 years ago

docker pull marcellodesales/php-apache-cakephp-mysql