forked from laravel/vapor-dockerfiles
-
Notifications
You must be signed in to change notification settings - Fork 1
/
php83.Dockerfile
47 lines (38 loc) · 1.23 KB
/
php83.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
FROM --platform=linux/amd64 php:8.3-fpm-bookworm
# Install `docker-php-ext-install` helper to ease installation of PHP
# extensions
#
# Ref: https://github.com/mlocati/docker-php-extension-installer
ENV PHP_EXT_INSTALLER_VERSION=2.2.17
RUN set -eux; \
curl --fail -Lo /usr/local/bin/install-php-extensions \
https://github.com/mlocati/docker-php-extension-installer/releases/download/${PHP_EXT_INSTALLER_VERSION}/install-php-extensions; \
chmod +x /usr/local/bin/install-php-extensions
# Install common PHP extensions (using `install-php-extensions`)
# (no need to install mbstring, pdo, tokenizer or xml as they are already part of base image)
RUN set -eux; \
install-php-extensions \
bcmath \
exif \
gd \
gettext \
intl \
mcrypt \
mysqli \
pcntl \
pdo_mysql \
pdo_pgsql \
redis \
soap \
sockets \
xsl \
zip \
;
RUN cp "/etc/ssl/certs/ca-certificates.crt" /opt/cert.pem
COPY runtime/bootstrap /opt/bootstrap
COPY runtime/bootstrap.php /opt/bootstrap.php
COPY runtime/php.ini /usr/local/etc/php/php.ini
RUN chmod 755 /opt/bootstrap
RUN chmod 755 /opt/bootstrap.php
ENTRYPOINT []
CMD ["/opt/bootstrap"]