-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
28 lines (24 loc) · 687 Bytes
/
Dockerfile
File metadata and controls
28 lines (24 loc) · 687 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
FROM php:8.1-apache
WORKDIR /var/www/html
RUN apt-get update && apt-get install -y \
libfreetype6-dev \
libjpeg62-turbo-dev \
libpng-dev \
libwebp-dev \
libzip-dev \
libpq-dev \
libicu-dev \
zip \
locales \
locales-all \
&& docker-php-ext-configure gd --with-freetype --with-jpeg --with-webp \
&& docker-php-ext-install -j$(nproc) gd pdo pdo_mysql zip mysqli intl
RUN a2enmod rewrite && a2enmod deflate && a2enmod filter && a2enmod expires
# Custom php.ini
COPY php/custom-php.ini /usr/local/etc/php/conf.d/
# Locale
ENV LC_ALL C.UTF-8
ENV LANG C.UTF-8
# Restart apache
RUN echo "ServerName localhost" >> /etc/apache2/apache2.conf
RUN service apache2 restart