-
Notifications
You must be signed in to change notification settings - Fork 36
/
php80.Dockerfile
65 lines (55 loc) · 1.15 KB
/
php80.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
FROM --platform=linux/amd64 php:8.0-fpm-alpine
RUN apk --update add \
wget \
curl \
build-base \
libmcrypt-dev \
libxml2-dev \
pcre-dev \
zlib-dev \
autoconf \
oniguruma-dev \
openssl \
openssl-dev \
freetype-dev \
libjpeg-turbo-dev \
jpeg-dev \
libpng-dev \
imagemagick-dev \
imagemagick \
postgresql-dev \
libzip-dev \
gettext-dev \
libxslt-dev \
libgcrypt-dev &&\
rm /var/cache/apk/*
RUN pecl channel-update pecl.php.net && \
pecl install mcrypt redis-5.3.7 && \
rm -rf /tmp/pear
RUN docker-php-ext-install \
mysqli \
mbstring \
pdo \
pdo_mysql \
tokenizer \
xml \
pcntl \
bcmath \
pdo_pgsql \
zip \
intl \
gettext \
soap \
sockets \
xsl
RUN docker-php-ext-configure gd --with-freetype=/usr/lib/ --with-jpeg=/usr/lib/ && \
docker-php-ext-install gd
RUN docker-php-ext-enable redis
RUN cp "/etc/ssl/cert.pem" /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