-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
51 lines (44 loc) · 939 Bytes
/
Dockerfile
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
FROM php:8.2-apache
RUN apt-get update && apt-get install -y \
libfreetype6-dev \
libjpeg62-turbo-dev \
libpng-dev \
libzip-dev \
libicu-dev \
libxml2-dev \
zlib1g-dev \
libldap2-dev \
libonig-dev \
libpq-dev \
libssl-dev \
libcurl4-openssl-dev \
libmemcached-dev \
libtidy-dev \
libxpm-dev \
libgd-dev \
libgmp-dev \
&& rm -rf /var/lib/apt/lists/*
RUN docker-php-ext-install \
gd \
intl \
pdo_pgsql \
mysqli \
zip \
ldap \
opcache \
gmp \
tidy \
calendar \
exif \
gettext \
sockets \
pdo \
pdo_mysql
RUN a2enmod rewrite
WORKDIR /var/www/html
RUN rm -fR /etc/apache2/sites-available/000-default.conf
COPY 000-default.conf /etc/apache2/sites-available/
COPY entrypoint.sh /usr/local/bin/
RUN chmod +x /usr/local/bin/entrypoint.sh
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]
CMD ["apache2-foreground"]