forked from FOSSBilling/FOSSBilling
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
21 lines (19 loc) · 830 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
FROM php:8.3-apache
# Install required packages, configure Apache, install PHP exensions, and clean-up.
RUN apt-get update \
&& apt-get install -y --no-install-recommends wget unzip zlib1g-dev libpng-dev libicu-dev libbz2-dev \
&& a2enmod rewrite \
&& docker-php-ext-configure bz2 \
&& docker-php-ext-install -j$(nproc) bz2 \
&& docker-php-ext-configure gd \
&& docker-php-ext-install -j$(nproc) gd \
&& docker-php-ext-configure intl \
&& docker-php-ext-install -j$(nproc) intl \
&& docker-php-ext-configure opcache \
&& docker-php-ext-install -j$(nproc) opcache \
&& docker-php-ext-configure pdo_mysql \
&& docker-php-ext-install -j$(nproc) pdo_mysql \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
# Copy files and set required permissions.
COPY --chown=www-data:www-data ./src/. /var/www/html