-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile.php7-fpm
22 lines (17 loc) · 941 Bytes
/
Dockerfile.php7-fpm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM bitnami/php-fpm:7.4-prod
LABEL maintainer="奶爸 <[email protected]>"
ENV PHP_VERSION=7.4
# Please bind crontab file to /etc/cron.d/crontab-config
RUN install_packages cron && \
# Install ioncube
cd /tmp && curl -o ioncube.tar.gz http://downloads.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz && \
tar -xzvf ioncube.tar.gz && \
cp /tmp/ioncube/ioncube_loader_lin_$PHP_VERSION.so /opt/bitnami/php/lib/php/extensions/ && \
sed -i 's/;ffi\.preload=/zend_extension = \/opt\/bitnami\/php\/lib\/php\/extensions\/ioncube_loader_lin_7.4.so/g' /opt/bitnami/php/etc/php.ini && \
rm -rf /tmp/*
RUN echo extension=imagick.so >> /opt/bitnami/php/etc/php.ini && \
ls -al /opt/bitnami/php/lib/php/extensions/
CMD chmod 0755 /etc/cron.d/crontab-config && \
crontab /etc/cron.d/crontab-config && \
cron -f & \
php-fpm -F --pid /opt/bitnami/php/tmp/php-fpm.pid -y /opt/bitnami/php/etc/php-fpm.conf