mirror of
https://github.com/Yannick7777/codeigniter-setup-script.git
synced 2025-09-09 15:53:03 +02:00
Initial commit
This commit is contained in:
commit
dc46c9e48f
18 changed files with 360 additions and 0 deletions
30
docker_build/Dockerfile
Normal file
30
docker_build/Dockerfile
Normal file
|
@ -0,0 +1,30 @@
|
|||
FROM composer AS composer
|
||||
|
||||
|
||||
FROM php:8.2-apache
|
||||
|
||||
COPY --from=composer /usr/bin/composer /usr/bin/composer
|
||||
COPY . .
|
||||
|
||||
RUN apt-get update \
|
||||
&& apt-get install -y \
|
||||
libicu-dev libzip-dev \
|
||||
&& docker-php-ext-enable opcache \
|
||||
&& docker-php-ext-install pdo_mysql intl zip -j$(nproc) \
|
||||
&& apt-get autoclean -y \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
RUN apt-get update \
|
||||
&& apt-get install -y "$(cat add_pkgs | head -n 1)" || true \
|
||||
&& docker-php-ext-enable "$(cat enable_ext | head -n 1)" || true \
|
||||
&& docker-php-ext-enable "$(cat install_ext | head -n 1)" || true \
|
||||
&& apt-get autoclean -y \
|
||||
&& rm -rf /var/lib/apt/lists/* \
|
||||
|
||||
# Update apache config to point to the *public* directory
|
||||
ENV APACHE_DOCUMENT_ROOT=/var/www/public
|
||||
RUN sed -ri -e 's!/var/www/html!${APACHE_DOCUMENT_ROOT}!g' /etc/apache2/sites-available/*.conf
|
||||
RUN sed -ri -e 's!/var/www/!${APACHE_DOCUMENT_ROOT}!g' /etc/apache2/apache2.conf /etc/apache2/conf-available/*.conf
|
||||
|
||||
# Enable headers module
|
||||
RUN a2enmod rewrite headers
|
Loading…
Add table
Add a link
Reference in a new issue