2023-06-01 12:06:45 +00:00
|
|
|
FROM php:7.4-apache
|
|
|
|
RUN touch /usr/local/etc/php/conf.d/uploads.ini \
|
2023-06-12 10:15:38 +00:00
|
|
|
&& 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
|
2023-06-01 12:06:45 +00:00
|
|
|
RUN apt-get update \
|
|
|
|
&& apt-get install -y git curl libxml2-dev libonig-dev
|
2023-07-04 13:35:46 +00:00
|
|
|
RUN docker-php-ext-install mysqli mbstring xml
|
2023-06-01 12:06:45 +00:00
|
|
|
#RUN docker-php-ext-install curl
|
|
|
|
#RUN docker-php-ext-install openssl
|
2023-07-04 13:35:46 +00:00
|
|
|
RUN rm -rf /var/www/html/docker/
|
2023-06-01 12:06:45 +00:00
|
|
|
COPY ./ /var/www/html/
|
2023-07-04 13:35:46 +00:00
|
|
|
WORKDIR /var/www/html
|
2023-07-04 15:12:26 +00:00
|
|
|
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" \
|
2023-07-04 15:33:57 +00:00
|
|
|
&& chown -R root:root ./application/config/ \
|
|
|
|
&& chown -R root:root ./application/logs/ \
|
|
|
|
&& chown -R root:root ./assets/qslcard/ \
|
|
|
|
&& chown -R root:root ./backup/ \
|
|
|
|
&& chown -R root:root ./updates/ \
|
|
|
|
&& chown -R root:root ./uploads/ \
|
|
|
|
&& chown -R root:root ./images/eqsl_card_images/ \
|
|
|
|
&& chown -R root:root ./assets/json/ \
|
2023-07-04 15:33:08 +00:00
|
|
|
&& 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/ \
|
2023-07-04 15:12:26 +00:00
|
|
|
&& chmod 777 /var/www/html/install \
|
|
|
|
&& echo "Make sure everything is fine" \
|
|
|
|
&& dir -ls
|