Update to PHP8 for docker base
This commit is contained in:
parent
9fd9c6ce5a
commit
6d1bdc2162
3 changed files with 37 additions and 32 deletions
|
@ -1,5 +1,11 @@
|
||||||
# CHANGELOG
|
# CHANGELOG
|
||||||
|
|
||||||
|
## 2022-01-19
|
||||||
|
|
||||||
|
* Provide a filebin `3.6.2` version utilizing PHP8
|
||||||
|
* Docker images with PHP8 are suffixed with `-php8`
|
||||||
|
* PHP8 versions will be the default for all upcoming releases `> 3.6.2` and no PHP7 version will be maintained anymore
|
||||||
|
|
||||||
## 2022-01-18
|
## 2022-01-18
|
||||||
|
|
||||||
* Updated to filebin `3.6.2`
|
* Updated to filebin `3.6.2`
|
||||||
|
|
61
Dockerfile
61
Dockerfile
|
@ -71,30 +71,28 @@ RUN chmod -x /wait-for.sh && \
|
||||||
ghostscript \
|
ghostscript \
|
||||||
msmtp \
|
msmtp \
|
||||||
composer \
|
composer \
|
||||||
php7 \
|
php8 \
|
||||||
php7-fpm \
|
php8-fpm \
|
||||||
php7-cli \
|
php8-intl \
|
||||||
php7-intl \
|
php8-curl \
|
||||||
php7-curl \
|
php8-dom \
|
||||||
php7-json \
|
php8-pcntl \
|
||||||
php7-dom \
|
php8-posix \
|
||||||
php7-pcntl \
|
php8-pecl-mcrypt \
|
||||||
php7-posix \
|
php8-session \
|
||||||
php7-mcrypt \
|
php8-gd \
|
||||||
php7-session \
|
php8-exif \
|
||||||
php7-gd \
|
php8-phar \
|
||||||
php7-exif \
|
php8-pdo \
|
||||||
php7-phar \
|
php8-pgsql \
|
||||||
php7-pdo \
|
php8-pdo_pgsql \
|
||||||
php7-pgsql \
|
php8-pdo_mysql \
|
||||||
php7-pdo_pgsql \
|
php8-mysqli \
|
||||||
php7-pdo_mysql \
|
php8-fileinfo \
|
||||||
php7-mysqli \
|
php8-mbstring \
|
||||||
php7-fileinfo \
|
php8-ctype \
|
||||||
php7-mbstring \
|
php8-ldap \
|
||||||
php7-ctype \
|
php8-pecl-memcached \
|
||||||
php7-ldap \
|
|
||||||
php7-pecl-memcached \
|
|
||||||
memcached \
|
memcached \
|
||||||
ca-certificates && \
|
ca-certificates && \
|
||||||
rm -rf /var/cache/apk/* && \
|
rm -rf /var/cache/apk/* && \
|
||||||
|
@ -102,15 +100,16 @@ RUN chmod -x /wait-for.sh && \
|
||||||
# prepare www dir
|
# prepare www dir
|
||||||
cp -r /var/www/application/config/example/* /var/www/application/config && \
|
cp -r /var/www/application/config/example/* /var/www/application/config && \
|
||||||
# set environments
|
# set environments
|
||||||
sed -i "s|;*memory_limit =.*|memory_limit = ${PHP_MEMORY_LIMIT}|i" /etc/php7/php.ini && \
|
sed -i "s|;*memory_limit =.*|memory_limit = ${PHP_MEMORY_LIMIT}|i" /etc/php8/php.ini && \
|
||||||
sed -i "s|;*upload_max_filesize =.*|upload_max_filesize = ${MAX_UPLOAD}|i" /etc/php7/php.ini && \
|
sed -i "s|;*upload_max_filesize =.*|upload_max_filesize = ${MAX_UPLOAD}|i" /etc/php8/php.ini && \
|
||||||
sed -i "s|;*max_file_uploads =.*|max_file_uploads = ${PHP_MAX_FILE_UPLOAD}|i" /etc/php7/php.ini && \
|
sed -i "s|;*max_file_uploads =.*|max_file_uploads = ${PHP_MAX_FILE_UPLOAD}|i" /etc/php8/php.ini && \
|
||||||
sed -i "s|;*post_max_size =.*|post_max_size = ${PHP_MAX_POST}|i" /etc/php7/php.ini && \
|
sed -i "s|;*post_max_size =.*|post_max_size = ${PHP_MAX_POST}|i" /etc/php8/php.ini && \
|
||||||
sed -i 's+.*sendmail_path =.*+sendmail_path = "/usr/bin/msmtp -C /var/www/msmtprc --logfile /var/www/msmtp.log -a filebinmail -t"+' /etc/php7/php.ini && \
|
sed -i 's+.*sendmail_path =.*+sendmail_path = "/usr/bin/msmtp -C /var/www/msmtprc --logfile /var/www/msmtp.log -a filebinmail -t"+' /etc/php8/php.ini && \
|
||||||
# clean up and permissions
|
# clean up and permissions
|
||||||
rm -rf /var/cache/apk/* && \
|
rm -rf /var/cache/apk/* && \
|
||||||
ln -s /usr/bin/python3 /usr/bin/python && \
|
ln -s /usr/bin/python3 /usr/bin/python && \
|
||||||
chown nobody:nginx -R /var/www
|
chown nobody:nginx -R /var/www && \
|
||||||
|
ln -s /usr/bin/php8 /usr/bin/php
|
||||||
|
|
||||||
# Add nginx config
|
# Add nginx config
|
||||||
ADD src/filebin.nginx.conf /etc/nginx/nginx.conf
|
ADD src/filebin.nginx.conf /etc/nginx/nginx.conf
|
||||||
|
@ -129,4 +128,4 @@ ADD src/configure-mail.sh /var/www/configure-mail.sh
|
||||||
ADD src/s6/ /etc/s6/
|
ADD src/s6/ /etc/s6/
|
||||||
|
|
||||||
# expose start
|
# expose start
|
||||||
CMD php /configure.php && exec s6-svscan /etc/s6/
|
CMD /usr/bin/php /configure.php && exec s6-svscan /etc/s6/
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
exec /usr/sbin/php-fpm7 --nodaemonize
|
exec /usr/sbin/php-fpm8 --nodaemonize
|
||||||
|
|
Loading…
Reference in a new issue