Update docker image packages for FileBin 4.0.0
This commit is contained in:
parent
0eff8828b4
commit
a486bbb110
4 changed files with 33 additions and 31 deletions
|
@ -1,5 +1,9 @@
|
||||||
# CHANGELOG
|
# CHANGELOG
|
||||||
|
|
||||||
|
## 2022-12-16
|
||||||
|
|
||||||
|
* Update docker image packages
|
||||||
|
|
||||||
## 2022-06-01
|
## 2022-06-01
|
||||||
|
|
||||||
* Provide a filebin `4.0.0` version utilizing PHP8
|
* Provide a filebin `4.0.0` version utilizing PHP8
|
||||||
|
|
56
Dockerfile
56
Dockerfile
|
@ -71,28 +71,27 @@ RUN chmod -x /wait-for.sh && \
|
||||||
ghostscript \
|
ghostscript \
|
||||||
msmtp \
|
msmtp \
|
||||||
composer \
|
composer \
|
||||||
php8 \
|
php81 \
|
||||||
php8-fpm \
|
php81-fpm \
|
||||||
php8-intl \
|
php81-intl \
|
||||||
php8-curl \
|
php81-curl \
|
||||||
php8-dom \
|
php81-dom \
|
||||||
php8-pcntl \
|
php81-pcntl \
|
||||||
php8-posix \
|
php81-posix \
|
||||||
php8-pecl-mcrypt \
|
php81-session \
|
||||||
php8-session \
|
php81-gd \
|
||||||
php8-gd \
|
php81-exif \
|
||||||
php8-exif \
|
php81-phar \
|
||||||
php8-phar \
|
php81-pdo \
|
||||||
php8-pdo \
|
php81-pgsql \
|
||||||
php8-pgsql \
|
php81-pdo_pgsql \
|
||||||
php8-pdo_pgsql \
|
php81-pdo_mysql \
|
||||||
php8-pdo_mysql \
|
php81-mysqli \
|
||||||
php8-mysqli \
|
php81-fileinfo \
|
||||||
php8-fileinfo \
|
php81-mbstring \
|
||||||
php8-mbstring \
|
php81-ctype \
|
||||||
php8-ctype \
|
php81-ldap \
|
||||||
php8-ldap \
|
php81-pecl-memcached \
|
||||||
php8-pecl-memcached \
|
|
||||||
memcached \
|
memcached \
|
||||||
ca-certificates && \
|
ca-certificates && \
|
||||||
rm -rf /var/cache/apk/* && \
|
rm -rf /var/cache/apk/* && \
|
||||||
|
@ -100,17 +99,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/php8/php.ini && \
|
sed -i "s|;*memory_limit =.*|memory_limit = ${PHP_MEMORY_LIMIT}|i" /etc/php81/php.ini && \
|
||||||
sed -i "s|;*upload_max_filesize =.*|upload_max_filesize = ${MAX_UPLOAD}|i" /etc/php8/php.ini && \
|
sed -i "s|;*upload_max_filesize =.*|upload_max_filesize = ${MAX_UPLOAD}|i" /etc/php81/php.ini && \
|
||||||
sed -i "s|;*max_file_uploads =.*|max_file_uploads = ${PHP_MAX_FILE_UPLOAD}|i" /etc/php8/php.ini && \
|
sed -i "s|;*max_file_uploads =.*|max_file_uploads = ${PHP_MAX_FILE_UPLOAD}|i" /etc/php81/php.ini && \
|
||||||
sed -i "s|;*post_max_size =.*|post_max_size = ${PHP_MAX_POST}|i" /etc/php8/php.ini && \
|
sed -i "s|;*post_max_size =.*|post_max_size = ${PHP_MAX_POST}|i" /etc/php81/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 && \
|
sed -i 's+.*sendmail_path =.*+sendmail_path = "/usr/bin/msmtp -C /var/www/msmtprc --logfile /var/www/msmtp.log -a filebinmail -t"+' /etc/php81/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 && \
|
|
||||||
chown nobody:nginx -R /var/www && \
|
chown nobody:nginx -R /var/www && \
|
||||||
rm /usr/bin/php && \
|
rm /usr/bin/php && \
|
||||||
ln -s /usr/bin/php8 /usr/bin/php
|
ln -s /usr/bin/php81 /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
|
||||||
|
|
|
@ -6,7 +6,7 @@ networks:
|
||||||
|
|
||||||
services:
|
services:
|
||||||
db:
|
db:
|
||||||
image: postgres:11
|
image: postgres:15
|
||||||
container_name: filebin_db
|
container_name: filebin_db
|
||||||
environment:
|
environment:
|
||||||
- POSTGRES_PASSWORD=fb
|
- POSTGRES_PASSWORD=fb
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
exec /usr/sbin/php-fpm8 --nodaemonize
|
exec /usr/sbin/php-fpm81 --nodaemonize
|
||||||
|
|
Loading…
Reference in a new issue