kopia lustrzana https://github.com/magicbug/Cloudlog
39 wiersze
1.8 KiB
Docker
39 wiersze
1.8 KiB
Docker
FROM php:7.4-apache
|
|
RUN touch /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 "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 "max_execution_time = 60" >> /usr/local/etc/php/conf.d/uploads.ini
|
|
RUN apt-get update \
|
|
&& apt-get install -y git curl libxml2-dev libonig-dev
|
|
RUN docker-php-ext-install mysqli mbstring xml
|
|
#RUN docker-php-ext-install curl
|
|
#RUN docker-php-ext-install openssl
|
|
RUN rm -rf /var/www/html/docker/
|
|
COPY ./ /var/www/html/
|
|
WORKDIR /var/www/html
|
|
RUN cd /var/www/html \
|
|
&& echo "Setting root as owner of the folder..." \
|
|
&& chown -R root:root /var/www/html \
|
|
&& echo "Setting permissions to the install folder" \
|
|
&& chown -R root:www-data ./application/config/ \
|
|
&& chown -R root:www-data ./application/logs/ \
|
|
&& chown -R root:www-data ./assets/qslcard/ \
|
|
&& chown -R root:www-data ./backup/ \
|
|
&& chown -R root:www-data ./updates/ \
|
|
&& chown -R root:www-data ./uploads/ \
|
|
&& chown -R root:www-data ./images/eqsl_card_images/ \
|
|
&& chown -R root:www-data ./assets/json/ \
|
|
&& chmod -R g+rw ./application/config/ \
|
|
&& chmod -R g+rw ./application/logs/ \
|
|
&& chmod -R g+rw ./assets/qslcard/ \
|
|
&& chmod -R g+rw ./backup/ \
|
|
&& chmod -R g+rw ./updates/ \
|
|
&& chmod -R g+rw ./uploads/ \
|
|
&& chmod -R g+rw ./images/eqsl_card_images/ \
|
|
&& chmod -R g+rw ./assets/json/ \
|
|
&& chmod 777 /var/www/html/install \
|
|
&& echo "Make sure everything is fine" \
|
|
&& dir -ls
|