-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
32 lines (23 loc) · 870 Bytes
/
Copy pathDockerfile
File metadata and controls
32 lines (23 loc) · 870 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# ChurchDB — CodeIgniter 4 (PHP 8.2 + Apache)
FROM php:8.2-apache-bookworm
RUN apt-get update && apt-get install -y --no-install-recommends \
git \
libicu-dev \
libzip-dev \
unzip \
zip \
&& docker-php-ext-configure intl \
&& docker-php-ext-install -j"$(nproc)" intl mysqli pdo_mysql opcache zip \
&& rm -rf /var/lib/apt/lists/*
RUN a2enmod rewrite headers
COPY docker/apache/000-default.conf /etc/apache2/sites-available/000-default.conf
COPY --from=composer:2 /usr/bin/composer /usr/bin/composer
WORKDIR /var/www/html
COPY composer.json composer.lock ./
RUN composer install --no-dev --no-scripts --no-interaction --prefer-dist
COPY . .
RUN composer dump-autoload --optimize --classmap-authoritative --no-dev \
&& chown -R www-data:www-data writable \
&& chmod -R 775 writable
ENV CI_ENVIRONMENT=production
EXPOSE 80