mirror of
https://github.com/magicbug/Cloudlog
synced 2024-11-21 15:56:30 +00:00
Moving to PHP8.2
This commit is contained in:
parent
628bf0d2a5
commit
25147cdc2b
@ -1,24 +1,24 @@
|
|||||||
FROM php:7.4-apache
|
FROM php:8.2-apache
|
||||||
|
# Enabling custom upload settings in PHP
|
||||||
RUN touch /usr/local/etc/php/conf.d/uploads.ini \
|
RUN touch /usr/local/etc/php/conf.d/uploads.ini \
|
||||||
&& echo "file_uploads = On" >> /usr/local/etc/php/conf.d/uploads.ini \
|
&& echo "file_uploads = On" >> /usr/local/etc/php/conf.d/uploads.ini \
|
||||||
&& echo "memory_limit = 64M" >> /usr/local/etc/php/conf.d/uploads.ini \
|
&& echo "memory_limit = 64M" >> /usr/local/etc/php/conf.d/uploads.ini \
|
||||||
&& echo "upload_max_filesize = 64M" >> /usr/local/etc/php/conf.d/uploads.ini \
|
&& echo "upload_max_filesize = 64M" >> /usr/local/etc/php/conf.d/uploads.ini \
|
||||||
&& echo "post_max_size = 64M" >> /usr/local/etc/php/conf.d/uploads.ini \
|
&& echo "post_max_size = 64M" >> /usr/local/etc/php/conf.d/uploads.ini \
|
||||||
&& echo "max_execution_time = 60" >> /usr/local/etc/php/conf.d/uploads.ini
|
&& echo "max_execution_time = 60" >> /usr/local/etc/php/conf.d/uploads.ini
|
||||||
|
# Adding required libraries and modules
|
||||||
RUN apt-get update \
|
RUN apt-get update \
|
||||||
&& apt-get install -y git curl libxml2-dev libonig-dev
|
&& apt-get install -y git curl libxml2-dev libonig-dev
|
||||||
RUN docker-php-ext-install mysqli mbstring xml
|
RUN docker-php-ext-install mysqli mbstring xml
|
||||||
#RUN docker-php-ext-install curl
|
# Cleanup
|
||||||
#RUN docker-php-ext-install openssl
|
|
||||||
RUN rm -rf /var/www/html/docker/
|
RUN rm -rf /var/www/html/docker/
|
||||||
|
# Copy proper file to target image
|
||||||
COPY ./ /var/www/html/
|
COPY ./ /var/www/html/
|
||||||
WORKDIR /var/www/html
|
WORKDIR /var/www/html
|
||||||
# Setting permissions as: https://github.com/magicbug/Cloudlog/wiki/Installation
|
# Setting permissions as: https://github.com/magicbug/Cloudlog/wiki/Installation
|
||||||
RUN cd /var/www/html \
|
RUN cd /var/www/html \
|
||||||
&& echo "Setting root as owner of the html folder" \
|
|
||||||
&& chown -R root:www-data /var/www/html
|
&& chown -R root:www-data /var/www/html
|
||||||
RUN echo "Setting permissions to the install folder" \
|
RUN chmod -R g+rw ./application/config/ \
|
||||||
&& chmod -R g+rw ./application/config/ \
|
|
||||||
&& chmod -R g+rw ./application/logs/ \
|
&& chmod -R g+rw ./application/logs/ \
|
||||||
&& chmod -R g+rw ./assets/qslcard/ \
|
&& chmod -R g+rw ./assets/qslcard/ \
|
||||||
&& chmod -R g+rw ./backup/ \
|
&& chmod -R g+rw ./backup/ \
|
||||||
|
@ -19,9 +19,9 @@ function delDir($dir) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
// This step may be not needed
|
// This step may be not needed
|
||||||
if (file_exists($dir)) {
|
// if (file_exists($dir)) {
|
||||||
rmdir( $dir );
|
// rmdir( $dir );
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
|
|
||||||
if (file_exists($db_file_path)) {
|
if (file_exists($db_file_path)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user