Sign inSign up

irulvam/codeigniter4-php

By irulvam

•Updated almost 6 years ago

docker codeigniter 4 php apache

Image
0

10K+

irulvam/codeigniter4-php repository overview

default directory

/var/www/html/

example Dockerfile

FROM irulvam/codeigniter4-php:latest
WORKDIR /app
RUN a2enmod unique_id && \
    rm -rf /etc/apache2/sites-enabled/* /etc/apache2/sites-available/* /etc/apache2/conf-enabled/other-vhosts-access-log.conf
COPY deploy/sites-enabled/ /etc/apache2/sites-enabled/
COPY . /app
RUN composer install --prefer-dist --no-dev --optimize-autoloader
RUN chown -R www-data:www-data /app

vhosts.conf example and save in folderdeploy/sites-enabled/

<VirtualHost *:80>
    ServerName example.com
    DocumentRoot "/app/public"
    <Directory "/app/public">
        Options Indexes FollowSymLinks
        AllowOverride All
        Require all granted
    </Directory>
</VirtualHost>

Tag summary

Content type

Image

Digest

Size

188.4 MB

Last updated

almost 6 years ago

docker pull irulvam/codeigniter4-php